Merge "Created new class NovaException."
authorSteven Pisarski <s.pisarski@cablelabs.com>
Tue, 18 Jul 2017 13:48:14 +0000 (13:48 +0000)
committerGerrit Code Review <gerrit@opnfv.org>
Tue, 18 Jul 2017 13:48:14 +0000 (13:48 +0000)
1  2 
snaps/openstack/utils/nova_utils.py

@@@ -480,5 -427,11 +479,11 @@@ def add_floating_ip_to_server(nova, vm
      :param floating_ip: FloatingIp domain object
      :param ip_addr: the IP to which to bind the floating IP to
      """
 -    vm = get_latest_server_os_object(nova, vm)
 +    vm = __get_latest_server_os_object(nova, vm)
      vm.add_floating_ip(floating_ip.ip, ip_addr)
+ class NovaException(Exception):
+     """
+     Exception when calls to the Keystone client cannot be served properly
+     """