From 026dca67bd2976e5029e2d221851a794be3a4733 Mon Sep 17 00:00:00 2001 From: Slawek Kaplonski Date: Wed, 2 Oct 2019 14:01:26 +0000 Subject: [PATCH] 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 --- tobiko/openstack/os_faults/_execute.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tobiko/openstack/os_faults/_execute.py b/tobiko/openstack/os_faults/_execute.py index d19b126be..0190f0906 100644 --- a/tobiko/openstack/os_faults/_execute.py +++ b/tobiko/openstack/os_faults/_execute.py @@ -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)