Fix permission error on running periodic task

In Magnum devstack plugin, the 'sed' command didn't write to the Heat
policy file, which causes permission error.

Change-Id: I531b542ca3d4a78cb2ea1feb706bf0363c00984b
Closes-Bug: #1477800
This commit is contained in:
Hongbin Lu 2015-07-23 21:50:30 -04:00
parent f60787bc8b
commit 11398e175c
1 changed files with 1 additions and 1 deletions

View File

@ -175,7 +175,7 @@ function create_magnum_conf {
function update_heat_policy { function update_heat_policy {
# enable stacks globel_index search so that magnum can use # enable stacks globel_index search so that magnum can use
# list(global_tenant=True) # list(global_tenant=True)
sed 's/\("stacks:global_index":\).*$/\1 "role:admin",/' $HEAT_CONF_DIR/policy.json sed -i 's/\("stacks:global_index":\).*$/\1 "role:admin",/' $HEAT_CONF_DIR/policy.json
} }
function create_magnum_conf_magnum_network { function create_magnum_conf_magnum_network {