diff options
author | Toshio Kuratomi <toshio@fedoraproject.org> | 2015-07-20 23:02:44 -0700 |
---|---|---|
committer | Toshio Kuratomi <toshio@fedoraproject.org> | 2015-07-20 23:04:27 -0700 |
commit | 79173ac18de66bcdb6c25729fb4561c772d37cab (patch) | |
tree | 01e91c532bb4ada246dc2e64d7f1a2bbeb7bac5b /clustering/consul.py | |
parent | d5dd5f461f1aa74b9f5c368bd74050cb7a7aa382 (diff) | |
download | ansible-modules-extras-79173ac18de66bcdb6c25729fb4561c772d37cab.tar.gz |
Clean up unneeded urllib2 imports
Diffstat (limited to 'clustering/consul.py')
-rw-r--r-- | clustering/consul.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clustering/consul.py b/clustering/consul.py index 11651757..f72fc6dd 100644 --- a/clustering/consul.py +++ b/clustering/consul.py @@ -166,7 +166,6 @@ EXAMPLES = ''' ''' import sys -import urllib2 try: import json @@ -179,7 +178,7 @@ try: python_consul_installed = True except ImportError, e: python_consul_installed = False - + def register_with_consul(module): state = module.params.get('state') @@ -503,4 +502,5 @@ def main(): # import module snippets from ansible.module_utils.basic import * -main() +if __name__ == '__main__': + main() |