From 65c9090714c4f3b1964029606f9cf3061a5d7b27 Mon Sep 17 00:00:00 2001 From: ABond Date: Tue, 4 Sep 2018 21:46:03 -0400 Subject: [PATCH] DigitalOcean inventory deprecation warning (#45054) Handle DeprecationWarning for ConfigParser in python3 Fixes #45053 --- contrib/inventory/digital_ocean.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/inventory/digital_ocean.py b/contrib/inventory/digital_ocean.py index eb573677a9..f19a7aa447 100755 --- a/contrib/inventory/digital_ocean.py +++ b/contrib/inventory/digital_ocean.py @@ -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)