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

DigitalOcean inventory deprecation warning (#45054)

Handle DeprecationWarning for ConfigParser in python3

Fixes #45053
This commit is contained in:
ABond 2018-09-04 21:46:03 -04:00 committed by Abhijeet Kasurde
parent 41db45ac33
commit 65c9090714

View file

@ -320,7 +320,7 @@ class DigitalOceanInventory(object):
def read_settings(self): def read_settings(self):
""" Reads the settings from the digital_ocean.ini file """ """ Reads the settings from the digital_ocean.ini file """
config = ConfigParser.SafeConfigParser() config = ConfigParser.ConfigParser()
config_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'digital_ocean.ini') config_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'digital_ocean.ini')
config.read(config_path) config.read(config_path)