DigitalOcean inventory deprecation warning (#45054)

Handle DeprecationWarning for ConfigParser in python3

Fixes #45053
pull/45208/head
ABond 6 years ago committed by Abhijeet Kasurde
parent 41db45ac33
commit 65c9090714

@ -320,7 +320,7 @@ class DigitalOceanInventory(object):
def read_settings(self):
""" 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.read(config_path)

Loading…
Cancel
Save