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 /monitoring | |
parent | d5dd5f461f1aa74b9f5c368bd74050cb7a7aa382 (diff) | |
download | ansible-modules-extras-79173ac18de66bcdb6c25729fb4561c772d37cab.tar.gz |
Clean up unneeded urllib2 imports
Diffstat (limited to 'monitoring')
-rw-r--r-- | monitoring/bigpanda.py | 6 | ||||
-rw-r--r-- | monitoring/boundary_meter.py | 4 | ||||
-rw-r--r-- | monitoring/datadog_event.py | 6 |
3 files changed, 8 insertions, 8 deletions
diff --git a/monitoring/bigpanda.py b/monitoring/bigpanda.py index 3bed4489..cd08ac9f 100644 --- a/monitoring/bigpanda.py +++ b/monitoring/bigpanda.py @@ -59,7 +59,7 @@ options: choices: ['yes', 'no'] # informational: requirements for nodes -requirements: [ urllib, urllib2 ] +requirements: [ ] ''' EXAMPLES = ''' @@ -168,5 +168,5 @@ def main(): # import module snippets from ansible.module_utils.basic import * from ansible.module_utils.urls import * - -main() +if __name__ == '__main__': + main() diff --git a/monitoring/boundary_meter.py b/monitoring/boundary_meter.py index 431a6ace..3e03a55c 100644 --- a/monitoring/boundary_meter.py +++ b/monitoring/boundary_meter.py @@ -38,7 +38,6 @@ author: "curtis (@ccollicutt)" requirements: - Boundary API access - bprobe is required to send data, but not to register a meter - - Python urllib2 options: name: description: @@ -252,5 +251,6 @@ def main(): # import module snippets from ansible.module_utils.basic import * from ansible.module_utils.urls import * -main() +if __name__ == '__main__': + main() diff --git a/monitoring/datadog_event.py b/monitoring/datadog_event.py index ebbad039..406a5ea1 100644 --- a/monitoring/datadog_event.py +++ b/monitoring/datadog_event.py @@ -16,7 +16,7 @@ description: version_added: "1.3" author: "Artūras `arturaz` Šlajus (@arturaz)" notes: [] -requirements: [urllib2] +requirements: [] options: api_key: description: ["Your DataDog API key."] @@ -139,5 +139,5 @@ def post_event(module): # import module snippets from ansible.module_utils.basic import * from ansible.module_utils.urls import * - -main() +if __name__ == '__main__': + main() |