summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcarey.xu <carey.xuhan@huawei.com>2015-11-17 19:14:08 +0800
committercarey.xu <carey.xuhan@huawei.com>2015-11-17 19:14:08 +0800
commit18e1a6899b24e035ca8589d01124e6ce200badf7 (patch)
treedd0ad99414840def21f0c73ea0a3745bd51c50ce
parentb2c43e6309342b450cbd895d28ae2da2ad0847e8 (diff)
use shell execute openstack components' db_sync method
JIRA: COMPASS-143 Change-Id: Ifb2f1c3691259d0860218c1b1c2f242377bdb91d Signed-off-by: carey.xu <carey.xuhan@huawei.com>
-rw-r--r--deploy/adapters/ansible/roles/glance/tasks/glance_config.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/deploy/adapters/ansible/roles/glance/tasks/glance_config.yml b/deploy/adapters/ansible/roles/glance/tasks/glance_config.yml
index 2e024675..0370ddca 100644
--- a/deploy/adapters/ansible/roles/glance/tasks/glance_config.yml
+++ b/deploy/adapters/ansible/roles/glance/tasks/glance_config.yml
@@ -1,7 +1,7 @@
---
- name: sync glance db
#glance_manage: action=dbsync
- shell: su -s /bin/sh 'glance-manage db sync' glance
+ shell: su -s /bin/sh -c 'glance-manage db sync' glance
ignore_errors: True
notify:
- restart glance services