diff options
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): |