diff --git a/contrib/inventory/digital_ocean.py b/contrib/inventory/digital_ocean.py index 24ba64370e..63b0f2965d 100755 --- a/contrib/inventory/digital_ocean.py +++ b/contrib/inventory/digital_ocean.py @@ -138,9 +138,13 @@ import sys import re import argparse from time import time -import ConfigParser import ast +try: + import ConfigParser +except ImportError: + import configparser as ConfigParser + try: import json except ImportError: