Skip to content

Commit

Permalink
Merge pull request #2063 from DataDog/talwai/openstack_fix
Browse files Browse the repository at this point in the history
[integrations][openstack] fix network service check false CRIT
  • Loading branch information
talwai committed Nov 6, 2015
2 parents faa70d7 + 226d8a4 commit 87b3d1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion checks.d/openstack.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ def get_stats_for_single_network(self, network_id):
if tenant_id is not None:
service_check_tags.append('tenant_id:{0}'.format(tenant_id))

if net_details.get('admin_state_up'):
if net_details.get('network', {}).get('admin_state_up'):
self.service_check(self.NETWORK_SC, AgentCheck.OK, tags=service_check_tags)
else:
self.service_check(self.NETWORK_SC, AgentCheck.CRITICAL, tags=service_check_tags)
Expand Down

0 comments on commit 87b3d1a

Please sign in to comment.