mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Fall back to simplejson if ImportError on json
This commit is contained in:
committed by
Matt Clay
parent
701a85e7fc
commit
5b56faeed2
@@ -131,9 +131,12 @@ EXAMPLES='''
|
||||
desc=deployment
|
||||
'''
|
||||
|
||||
import json
|
||||
import datetime
|
||||
import base64
|
||||
try:
|
||||
import json
|
||||
except ImportError:
|
||||
import simplejson as json
|
||||
|
||||
def auth_header(user, passwd, token):
|
||||
if token:
|
||||
|
||||
Reference in New Issue
Block a user