Skip to content

Commit

Permalink
Add missing imports for lb_members
Browse files Browse the repository at this point in the history
Introduced by e8c22f5

Change-Id: I0ce2d8290930fa8d95c75e790c319fbae2fe1df4
Closes-Bug: #1560741
  • Loading branch information
eonpatapon committed Apr 5, 2016
1 parent d7a86de commit 50aad38
Showing 1 changed file with 6 additions and 3 deletions.
Expand Up @@ -23,6 +23,9 @@
from oslo_config import cfg

from neutron.common import exceptions as n_exc
from neutron.plugins.common import constants

from cfgm_common import analytics_client

from vnc_api.vnc_api import IdPermsType, NoIdError
from vnc_api.vnc_api import LoadbalancerMember, LoadbalancerMemberType
Expand Down Expand Up @@ -71,9 +74,9 @@ def _get_object_status(self, member):
return constants.ACTIVE

for member_stat in member_stats:
if member_stat['uuid'] == member.uuid and \
member_stat['status'] == 'ACTIVE':
return member_stat['status']
if (member_stat['uuid'] == member.uuid and
member_stat['status'] == 'ACTIVE'):
return member_stat['status']

return constants.DOWN

Expand Down

0 comments on commit 50aad38

Please sign in to comment.