summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Cammarata <jimi@sngx.net>2014-05-01 11:39:46 -0500
committerJames Cammarata <jimi@sngx.net>2014-05-01 11:39:46 -0500
commit2b898e7e8bd924fbfc02660449dce73e32bfe579 (patch)
treeb7354252e00a27f8b7b940ef0c4a55329a2a4da9
parent6069d5d4cf51c985275c440654360135fc48c7e2 (diff)
downloadansible-2b898e7e8bd924fbfc02660449dce73e32bfe579.tar.gz
Minor fix to imports in new stackdriver module
-rw-r--r--library/notification/stackdriver5
1 files changed, 2 insertions, 3 deletions
diff --git a/library/notification/stackdriver b/library/notification/stackdriver
index 5ac889a212..7caa66d88b 100644
--- a/library/notification/stackdriver
+++ b/library/notification/stackdriver
@@ -79,10 +79,9 @@ EXAMPLES = '''
# Stackdriver module specific support methods.
#
try:
- import urllib, urllib2, json
+ import json
except ImportError:
- module.fail_json(msg="json, urllib, and urllib2 are required")
-
+ import simplejson as json
def send_deploy_event(module, key, revision_id, deployed_by='Ansible', deployed_to=None, repository=None):
"""Send a deploy event to Stackdriver"""