diff options
| author | Vishvananda Ishaya <vishvananda@gmail.com> | 2011-01-27 16:26:15 -0800 |
|---|---|---|
| committer | Vishvananda Ishaya <vishvananda@gmail.com> | 2011-01-27 16:26:15 -0800 |
| commit | 98cc358d4cc04b61fc19ce77f5db58cf88c6e908 (patch) | |
| tree | e70844625c21241f5b75a37369322602263be4ee | |
| parent | 1a44e3cd5e366b0862c505e8d93581184c3162f1 (diff) | |
simplify get and remove extra reference to import logging.
| -rw-r--r-- | nova/compute/manager.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/nova/compute/manager.py b/nova/compute/manager.py index 84de590d7..f4418af26 100644 --- a/nova/compute/manager.py +++ b/nova/compute/manager.py @@ -37,7 +37,6 @@ terminating it. import datetime import random import string -import logging import socket import functools @@ -231,7 +230,7 @@ class ComputeManager(manager.Manager): instance_ref = self.db.instance_get(context, instance_id) LOG.audit(_("Terminating instance %s"), instance_id, context=context) - fixed_ip = instance_ref.get('fixed_ip', None) + fixed_ip = instance_ref.get('fixed_ip') if not FLAGS.stub_network and fixed_ip: floating_ips = fixed_ip.get('floating_ips') or [] for floating_ip in floating_ips: |
