]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Correct invalid indentation in is_dvr_serviced
authorCedric Brandily <zzelle@gmail.com>
Tue, 23 Dec 2014 22:31:12 +0000 (23:31 +0100)
committerCedric Brandily <zzelle@gmail.com>
Tue, 23 Dec 2014 22:31:12 +0000 (23:31 +0100)
This change corrects indentation in is_dvr_serviced defined in
neutron.common.utils modul.

Change-Id: Ie0e7885ccf6e9101c6ad638b410bf17e359c5a0a

neutron/common/utils.py

index a5ae64a1ae775468dcf97ab4e2760fcca58a2dc2..3824553e48c2cf3e969bb6b5e77c43f7d7e06d96 100644 (file)
@@ -346,14 +346,14 @@ class exception_logger(object):
 
 
 def is_dvr_serviced(device_owner):
-        """Check if the port need to be serviced by DVR
-
-        Helper function to check the device owners of the
-        ports in the compute and service node to make sure
-        if they are required for DVR or any service directly or
-        indirectly associated with DVR.
-        """
-        dvr_serviced_device_owners = (q_const.DEVICE_OWNER_LOADBALANCER,
-                                      q_const.DEVICE_OWNER_DHCP)
-        return (device_owner.startswith('compute:') or
-                device_owner in dvr_serviced_device_owners)
+    """Check if the port need to be serviced by DVR
+
+    Helper function to check the device owners of the
+    ports in the compute and service node to make sure
+    if they are required for DVR or any service directly or
+    indirectly associated with DVR.
+    """
+    dvr_serviced_device_owners = (q_const.DEVICE_OWNER_LOADBALANCER,
+                                  q_const.DEVICE_OWNER_DHCP)
+    return (device_owner.startswith('compute:') or
+            device_owner in dvr_serviced_device_owners)