diff options
author | Ross Brattain <ross.b.brattain@intel.com> | 2017-09-28 22:08:25 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-09-28 22:08:25 +0000 |
commit | 12722dca61e657942182b236ca0281aabee47b96 (patch) | |
tree | 4127450f349c010e15da8a03925a1c80a1a81ce0 /ansible/filter_plugins | |
parent | 24becc79e0abecaaa24aa018ecac4476738e0a66 (diff) | |
parent | 619acb7a3e0e2d33699a25cc0e5ffda78c4c4f8c (diff) |
Merge "add collectd ansible"
Diffstat (limited to 'ansible/filter_plugins')
-rw-r--r-- | ansible/filter_plugins/networks.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ansible/filter_plugins/networks.py b/ansible/filter_plugins/networks.py index a1573951f..d67615a53 100644 --- a/ansible/filter_plugins/networks.py +++ b/ansible/filter_plugins/networks.py @@ -13,7 +13,10 @@ # limitations under the License. -from urlparse import urlsplit +try: + from urlparse import urlsplit +except ImportError: + from urllib.parse import urlsplit def do_prefix_to_netmask(arg): |