Skip to content

Commit 032d243

Browse files
yukinchanmbaldessari
authored andcommitted
Fix Ansible Lint failure
1 parent aa16fcd commit 032d243

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

acm_import/roles/acm_import/tasks/region-fetch-api.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,11 @@
77
region_api: "{{ cluster_info['connection']['host'] }}"
88

99
- name: Find regional cluster name
10-
ansible.builtin.shell: |
11-
oc get dns cluster -o jsonpath='{.spec.baseDomain}{"\n"}' | cut -d. -f1
10+
ansible.builtin.shell:
11+
cmd: |
12+
set -o pipefail
13+
oc get dns cluster -o jsonpath='{.spec.baseDomain}{"\n"}' | cut -d. -f1
14+
executable: /bin/bash
1215
register: region_cluster_oc
1316
changed_when: false
1417

0 commit comments

Comments
 (0)