As of now, in the automation-acm code, the variable name to store local cluster information is inconsistent among acm and mce. This should be refactored to be made consistent across all scripts.
acm-install-tests.yml:
- shell: |
oc get managedclusters -l local-cluster=true -ojson | jq -r '.items[].metadata.name'
register: local_cluster_name
mce-install-tests.yml:
- name: Check if local-cluster enabled
shell: |
oc get managedclusters -l local-cluster=true -ojson | jq -r '.items[].metadata.name'
register: local_cluster