|
|
@ -150,9 +150,14 @@ api_response:
|
|
|
|
phase: "Active"
|
|
|
|
phase: "Active"
|
|
|
|
'''
|
|
|
|
'''
|
|
|
|
|
|
|
|
|
|
|
|
import yaml
|
|
|
|
|
|
|
|
import base64
|
|
|
|
import base64
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try:
|
|
|
|
|
|
|
|
import yaml
|
|
|
|
|
|
|
|
has_lib_yaml = True
|
|
|
|
|
|
|
|
except ImportError:
|
|
|
|
|
|
|
|
has_lib_yaml = False
|
|
|
|
|
|
|
|
|
|
|
|
############################################################################
|
|
|
|
############################################################################
|
|
|
|
############################################################################
|
|
|
|
############################################################################
|
|
|
|
# For API coverage, this Anislbe module provides capability to operate on
|
|
|
|
# For API coverage, this Anislbe module provides capability to operate on
|
|
|
@ -325,6 +330,9 @@ def main():
|
|
|
|
required_one_of = (('file_reference', 'inline_data'),),
|
|
|
|
required_one_of = (('file_reference', 'inline_data'),),
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if not has_lib_yaml:
|
|
|
|
|
|
|
|
module.fail_json(msg="missing python library: yaml")
|
|
|
|
|
|
|
|
|
|
|
|
decode_cert_data(module)
|
|
|
|
decode_cert_data(module)
|
|
|
|
|
|
|
|
|
|
|
|
api_endpoint = module.params.get('api_endpoint')
|
|
|
|
api_endpoint = module.params.get('api_endpoint')
|
|
|
|