Skip to content

Commit

Permalink
Update zabbix.py (#229)
Browse files Browse the repository at this point in the history
* Update zabbix.py

Python3 and DeprecationWarning: The SafeConfigParser class has been renamed to ConfigParser
  • Loading branch information
rdmarsh authored Oct 23, 2020
1 parent 77a0246 commit b959e94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/inventory/zabbix.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
class ZabbixInventory(object):

def read_settings(self):
config = configparser.SafeConfigParser()
config = configparser.ConfigParser()
conf_path = './zabbix.ini'
if not os.path.exists(conf_path):
conf_path = os.path.dirname(os.path.realpath(__file__)) + '/zabbix.ini'
Expand Down

0 comments on commit b959e94

Please sign in to comment.