openshift_process fails with template does not contains message (#87)

* fix unexpected value

* changelog

* Update pod-template.yaml

* Update openshift_process.py

* Update openshift_process.py

* Update molecule/default/tasks/openshift_process.yml

Co-authored-by: Fabian von Feilitzsch <fabian@fabianism.us>

* Update pod-template.yaml

Co-authored-by: Fabian von Feilitzsch <fabian@fabianism.us>
This commit is contained in:
abikouo
2021-05-26 16:48:47 +02:00
committed by GitHub
parent 63deaeecf0
commit 4609c20a91
4 changed files with 47 additions and 2 deletions

View File

@@ -330,8 +330,9 @@ class OpenShiftProcess(K8sAnsibleMixin):
except Exception as exc:
self.module.fail_json(msg="Server failed to render the Template: {0}".format(to_native(exc)),
error='', status='', reason='')
result['message'] = response['message']
result['message'] = ""
if "message" in response:
result['message'] = response['message']
result['resources'] = response['objects']
if state != 'rendered':