mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Minor fix to imports in new stackdriver module
This commit is contained in:
parent
6069d5d4cf
commit
2b898e7e8b
1 changed files with 2 additions and 3 deletions
|
@ -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"""
|
||||
|
|
Loading…
Reference in a new issue