summaryrefslogtreecommitdiffstats
path: root/snaps/openstack/create_instance.py
diff options
context:
space:
mode:
authorspisarski <s.pisarski@cablelabs.com>2018-10-03 13:54:39 -0600
committerspisarski <s.pisarski@cablelabs.com>2018-10-03 13:54:39 -0600
commitdee6094d2eee4e975770213fabd9736c220f42df (patch)
treea89dea539c6754937b0160d614612e7d5fac9998 /snaps/openstack/create_instance.py
parentbee558d02691fc16824cf6dae06e9daaa6a92c8a (diff)
Updates to the ansible API implementation to allow for
playbooks to be applied directly against the localhost as well as removing the return code in favor of reliance of unchecked Errors/Exceptions. Change-Id: Ib963aa9b4f5a75010d8f7b25db7d66a2e1950cce Signed-off-by: spisarski <s.pisarski@cablelabs.com>
Diffstat (limited to 'snaps/openstack/create_instance.py')
-rw-r--r--snaps/openstack/create_instance.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/snaps/openstack/create_instance.py b/snaps/openstack/create_instance.py
index 16bd0ce..e2a6991 100644
--- a/snaps/openstack/create_instance.py
+++ b/snaps/openstack/create_instance.py
@@ -474,9 +474,8 @@ class OpenStackVmInstance(OpenStackComputeObject):
playbook
:param fip_name: the name of the floating IP to use for applying the
playbook (default - will take the first)
- :return: the return value from ansible
"""
- return ansible_utils.apply_playbook(
+ ansible_utils.apply_playbook(
pb_file_loc, [self.get_floating_ip(fip_name=fip_name).ip],
self.get_image_user(),
ssh_priv_key_file_path=self.keypair_settings.private_filepath,