Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
Merge "Switch the ansible actions over to mistral-lib"
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenkins authored and openstack-gerrit committed Jun 27, 2017
2 parents 8e70861 + 160f795 commit a30bb5b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tripleo_common/actions/ansible.py
Expand Up @@ -21,7 +21,6 @@

import yaml

from mistral.workflow import utils as mistral_workflow_utils
from mistral_lib import actions
from oslo_concurrency import processutils

Expand Down Expand Up @@ -185,7 +184,7 @@ def run(self, context):
if self.extra_env_variables:
if not isinstance(self.extra_env_variables, dict):
msg = "extra_env_variables must be a dict"
return mistral_workflow_utils.Result(error=msg)
return actions.Result(error=msg)

try:
ansible_config_path = write_default_ansible_cfg(self.work_dir)
Expand Down Expand Up @@ -385,7 +384,7 @@ def run(self, context):
if self.extra_env_variables:
if not isinstance(self.extra_env_variables, dict):
msg = "extra_env_variables must be a dict"
return mistral_workflow_utils.Result(error=msg)
return actions.Result(error=msg)

try:
ansible_config_path = write_default_ansible_cfg(self.work_dir)
Expand Down

0 comments on commit a30bb5b

Please sign in to comment.