diff options
author | spisarski <s.pisarski@cablelabs.com> | 2018-10-08 08:24:57 -0600 |
---|---|---|
committer | spisarski <s.pisarski@cablelabs.com> | 2018-10-08 08:24:57 -0600 |
commit | 630875f0ac88239f0b9207312793f4d39a5e36bd (patch) | |
tree | a58fd03507f8da243611ae203f5e4010fe61b0f7 /snaps | |
parent | dee6094d2eee4e975770213fabd9736c220f42df (diff) |
Deprecating launch app and ansible support.
Change-Id: Iba28a784a4e78e1009d2038a30ccea8a1bfaa25f
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
Diffstat (limited to 'snaps')
-rw-r--r-- | snaps/openstack/create_instance.py | 4 | ||||
-rw-r--r-- | snaps/openstack/utils/launch_utils.py | 4 | ||||
-rw-r--r-- | snaps/provisioning/ansible_utils.py | 4 |
3 files changed, 12 insertions, 0 deletions
diff --git a/snaps/openstack/create_instance.py b/snaps/openstack/create_instance.py index e2a6991..b158a25 100644 --- a/snaps/openstack/create_instance.py +++ b/snaps/openstack/create_instance.py @@ -475,6 +475,10 @@ class OpenStackVmInstance(OpenStackComputeObject): :param fip_name: the name of the floating IP to use for applying the playbook (default - will take the first) """ + from warnings import warn + warn('This method will be removed in a subsequent release', + DeprecationWarning) + ansible_utils.apply_playbook( pb_file_loc, [self.get_floating_ip(fip_name=fip_name).ip], self.get_image_user(), diff --git a/snaps/openstack/utils/launch_utils.py b/snaps/openstack/utils/launch_utils.py index bb7600c..ddaad12 100644 --- a/snaps/openstack/utils/launch_utils.py +++ b/snaps/openstack/utils/launch_utils.py @@ -53,6 +53,10 @@ from snaps.openstack.utils import deploy_utils, neutron_utils, keystone_utils from snaps.openstack.utils.nova_utils import RebootType from snaps.provisioning import ansible_utils +from warnings import warn +warn('This utility will be removed in a subsequent release', + DeprecationWarning) + logger = logging.getLogger('lanuch_utils') DEFAULT_CREDS_KEY = 'admin' diff --git a/snaps/provisioning/ansible_utils.py b/snaps/provisioning/ansible_utils.py index b4c86f2..019a8e7 100644 --- a/snaps/provisioning/ansible_utils.py +++ b/snaps/provisioning/ansible_utils.py @@ -29,6 +29,10 @@ except: __author__ = 'spisarski' +from warnings import warn +warn('This utility will be removed in a subsequent release', + DeprecationWarning) + logger = logging.getLogger('ansible_utils') |