Skip to content

Commit 9a7ae05

Browse files
author
Lewis Franklin
committedMar 21, 2014
Tabs to spaces, PEP8 compliance
1 parent 33a559f commit 9a7ae05

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed
 

‎scripts/api.py

+6-4
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,15 @@ def check_queue(self, filters=None):
6666
def _send_data(self, queue):
6767
'''Send the queue data to Zabbix.'''
6868
args = 'zabbix_sender -c {0} -k {1} -o {2}'
69-
return_code = 0
70-
for item in ['memory', 'messages', 'messages_unacknowledged', 'consumers']:
69+
return_code = 0
70+
for item in ['memory', 'messages', 'messages_unacknowledged',
71+
'consumers']:
7172
key = '"rabbitmq[{0},queue_{1},{2}]"'
7273
key = key.format(queue['vhost'], item, queue['name'])
7374
value = queue.get(item, 0)
74-
#print "Executing ", args.format(self.conf, key, value)
75-
return_code |= subprocess.call(args.format(self.conf, key, value), shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
75+
return_code |= subprocess.call(args.format(self.conf, key, value),
76+
shell=True, stdout=subprocess.PIPE,
77+
stderr=subprocess.STDOUT)
7678
return return_code
7779

7880
def check_aliveness(self):

0 commit comments

Comments
 (0)