summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cloudinit/sources/DataSourceDigitalOcean.py2
-rw-r--r--tests/unittests/test_datasource/test_digitalocean.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/cloudinit/sources/DataSourceDigitalOcean.py b/cloudinit/sources/DataSourceDigitalOcean.py
index c59232ca..b25dcb27 100644
--- a/cloudinit/sources/DataSourceDigitalOcean.py
+++ b/cloudinit/sources/DataSourceDigitalOcean.py
@@ -19,7 +19,7 @@ from cloudinit import util
from cloudinit import sources
from cloudinit import url_helper
from cloudinit import ec2_utils
-from types import *
+from types import StringType
import functools
diff --git a/tests/unittests/test_datasource/test_digitalocean.py b/tests/unittests/test_datasource/test_digitalocean.py
index 0997cf38..04bee340 100644
--- a/tests/unittests/test_datasource/test_digitalocean.py
+++ b/tests/unittests/test_datasource/test_digitalocean.py
@@ -18,7 +18,7 @@
import httpretty
import re
-from types import *
+from types import ListType
from urlparse import urlparse
from cloudinit import settings