mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-23 20:44:00 -07:00
pep8 fixes for contrib (#24344)
This commit is contained in:
parent
c7ae6b9fd5
commit
d3249e7875
37 changed files with 326 additions and 380 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue