mirror of
https://github.com/ansible/awx.git
synced 2026-08-01 18:39:54 -02:30
fix a few bugs related to container group execution
see: https://github.com/ansible/awx/issues/5326
This commit is contained in:
@@ -173,7 +173,7 @@ def generate_tmp_kube_config(credential, namespace):
|
||||
"current-context": host_input
|
||||
}
|
||||
|
||||
if credential.get_input('verify_ssl'):
|
||||
if credential.get_input('verify_ssl') and 'ssl_ca_cert' in credential.inputs:
|
||||
config["clusters"][0]["cluster"]["certificate-authority-data"] = b64encode(
|
||||
credential.get_input('ssl_ca_cert').encode() # encode to bytes
|
||||
).decode() # decode the base64 data into a str
|
||||
|
||||
Reference in New Issue
Block a user