[bradm] Fixed order of arguments to fix_path_ownership

This commit is contained in:
Brad Marshall 2014-02-19 14:53:05 +10:00
parent 581d7626d3
commit 4978794555
2 changed files with 2 additions and 2 deletions

View File

@ -85,7 +85,7 @@ def config_changed():
if config('instances-path') != '':
fp = config('instances-path')
fix_path_ownership(user='nova', fp)
fix_path_ownership(fp, user='nova')
[compute_joined(rid) for rid in relation_ids('cloud-compute')]

View File

@ -397,6 +397,6 @@ def disable_shell(user):
check_call(cmd)
def fix_path_ownership(user='nova', path):
def fix_path_ownership(path, user='nova'):
cmd = ['chown', user, path]
check_call(cmd)