Add the cli_dir argument to nova-mange's execute call

This commit adds a missing cli_dir argument to the nova-manage execute
call. Without this if nova-manage were installed somewhere besides
/usr/bin using the nova_manage method would fail because it couldn't
find the binary.
This commit is contained in:
Matthew Treinish
2014-08-29 10:40:40 -04:00
parent 2d865614e9
commit bd74e7b704

View File

@@ -68,7 +68,8 @@ class CLIClientBase(object):
merge_stderr=False):
"""Executes nova-manage command for the given action."""
return execute(
'nova-manage', action, flags, params, fail_ok, merge_stderr)
'nova-manage', action, flags, params, fail_ok, merge_stderr,
self.cli_dir)
def keystone(self, action, flags='', params='', fail_ok=False):
"""Executes keystone command for the given action."""