1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

zabbix_inventory PEP8 compliance. (#28680)

This commit is contained in:
furhouse 2017-08-28 20:12:32 +02:00 committed by René Moser
parent ca91b361ce
commit af9396841e

View file

@ -37,7 +37,10 @@ from __future__ import print_function
import os
import sys
import argparse
import ConfigParser
try:
import ConfigParser as configparser
except ImportError:
import configparser
try:
from zabbix_api import ZabbixAPI
@ -55,7 +58,7 @@ except:
class ZabbixInventory(object):
def read_settings(self):
config = ConfigParser.SafeConfigParser()
config = configparser.SafeConfigParser()
conf_path = './zabbix.ini'
if not os.path.exists(conf_path):
conf_path = os.path.dirname(os.path.realpath(__file__)) + '/zabbix.ini'