From d9ca1955c00c00f4673193bb8b09073777a25ea1 Mon Sep 17 00:00:00 2001 From: ricolin Date: Wed, 15 Nov 2023 01:23:53 +0800 Subject: [PATCH] fix: add code block info --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 772009c..7850642 100755 --- a/README.md +++ b/README.md @@ -141,7 +141,7 @@ Staffeln API service allows we defined cinder policy check and make sure all Cinder volume backups are deleted only when that backup is not makaged by Staffeln. Once staffeln API service is up. You can define similar policy as following to `/etc/cinder/policy.yaml`: -``` +```yaml "backup:delete" : "rule:admin_api or (project_id:%(project_id)s and http://Staffeln-api-url:8808/v1/backup?backup_id=%(id)s)" ``` @@ -235,7 +235,7 @@ Make sure your openrc under `/etc/staffeln/staffeln.conf` provide required authorization shows in `Authentication` section. Run -``` +```shell openstack volume create --size 1 --image {IMAGE_ID} test-volume openstack server create --flavor {FLAVOR_ID} --volume {VOLUME_ID} \ --property __staffeln_backup=true --property __staffeln_retention=20min \