From 6b105bf64bc2126cb4132d5d4060a760928c98aa Mon Sep 17 00:00:00 2001 From: Cedric Brandily Date: Tue, 23 Dec 2014 23:31:12 +0100 Subject: [PATCH] Correct invalid indentation in is_dvr_serviced This change corrects indentation in is_dvr_serviced defined in neutron.common.utils modul. Change-Id: Ie0e7885ccf6e9101c6ad638b410bf17e359c5a0a --- neutron/common/utils.py | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/neutron/common/utils.py b/neutron/common/utils.py index a5ae64a1a..3824553e4 100644 --- a/neutron/common/utils.py +++ b/neutron/common/utils.py @@ -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) -- 2.45.2