Fix os-fault CLI command executor
Module os_faults.drivers.cloud.universal.UniversalCloudManagement don't have method execute() and because of that CLI command tobiko-fault was failing. Now it is using os_faults.human_api() function to execute commands on cloud. Change-Id: If18c57b36843660b57f818e907abb3a4dc915e7c
This commit is contained in:
parent
7cf2fe8aa3
commit
026dca67bd
@ -14,6 +14,7 @@
|
||||
from __future__ import absolute_import
|
||||
|
||||
from oslo_log import log
|
||||
import os_faults
|
||||
|
||||
from tobiko.openstack.os_faults import _cloud
|
||||
|
||||
@ -28,5 +29,5 @@ def os_faults_execute(command, cloud_management=None, config_filename=None,
|
||||
_cloud.get_os_fault_cloud_managenemt(
|
||||
config_filename=config_filename))
|
||||
if kwargs:
|
||||
command = command.format(**command)
|
||||
return cloud_management.execute(command)
|
||||
command = command.format(**kwargs)
|
||||
return os_faults.human_api(cloud_management, command)
|
||||
|
Loading…
Reference in New Issue
Block a user