From 401de4d20cb204b811dd5877e9e7688d72eb6e39 Mon Sep 17 00:00:00 2001 From: TommyLike Date: Thu, 4 May 2017 17:56:22 +0800 Subject: [PATCH] Copy 'resource_filters.json' file to cinder config folder Cinder use 'resource_filters.json' to config allowed filters, copy the new added json file when set config files. Change-Id: I397cb5859e2b3349af3cb07ee02b6463c6eccc35 Depends-On: 27aeba0b5d3cf64286125937e8336ba1d3b26b16 --- lib/cinder | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/cinder b/lib/cinder index 9fc25c75bb..e3a687b4f2 100644 --- a/lib/cinder +++ b/lib/cinder @@ -244,6 +244,10 @@ function configure_cinder { configure_rootwrap cinder + if [[ -f "$CINDER_DIR/etc/cinder/resource_filters.json" ]]; then + cp -p "$CINDER_DIR/etc/cinder/resource_filters.json" "$CINDER_CONF_DIR/resource_filters.json" + fi + cp $CINDER_DIR/etc/cinder/api-paste.ini $CINDER_API_PASTE_INI inicomment $CINDER_API_PASTE_INI filter:authtoken auth_host