pep8 fixes for contrib (#24344)

This commit is contained in:
Matt Martz 2017-05-09 16:38:08 -05:00 committed by GitHub
commit d3249e7875
37 changed files with 326 additions and 380 deletions

View file

@ -49,6 +49,7 @@ try:
except:
import simplejson as json
class ZabbixInventory(object):
def read_settings(self):
@ -96,7 +97,7 @@ class ZabbixInventory(object):
for group in host['groups']:
groupname = group['name']
if not groupname in data:
if groupname not in data:
data[groupname] = self.hoststub()
data[groupname]['hosts'].append(hostname)