Skip to content

Commit 18bb9a3

Browse files
committed
Update condition for SCS cluster status validation to check for non-empty output
1 parent 4572f0c commit 18bb9a3

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/roles/ha_scs/tasks/ascs-node-crash.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
and cluster_status_test_execution.ers_node == cluster_status_pre.ascs_node
6969
7070
- name: "Test Execution: Validate SCS cluster status ENSA2"
71-
when: hostvars[cluster_status_pre.ascs_node].ensa2_check.stdout == "1"
71+
when: hostvars[cluster_status_pre.ascs_node].ensa2_check.stdout != ""
7272
get_cluster_status_scs:
7373
sap_sid: "{{ sap_sid | lower }}"
7474
ansible_os_family: "{{ ansible_os_family | upper }}"

src/roles/ha_scs/tasks/kill-enqueue-replication.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
failed_when: false
4444

4545
- name: "Test Execution: Kill Enqueue Replication Server Process (ENSA2)"
46-
when: ensa2_check.stdout == "1"
46+
when: ensa2_check.stdout != ""
4747
ansible.builtin.shell: set -o pipefail && pgrep -f 'enqr.sap{{ sap_sid | upper }}' | xargs kill -9
4848
register: kill_enqr_result
4949
failed_when: false

src/roles/ha_scs/tasks/kill-enqueue-server.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
ansible.builtin.shell: set -o pipefail && pgrep -f 'enq.sap{{ sap_sid | upper }}' | xargs kill -9
4747
register: kill_en_result
4848
failed_when: false
49-
when: ensa2_check.stdout == "1"
49+
when: ensa2_check.stdout != ""
5050

5151
- name: "Test Execution: Validate ASCS node has stopped"
5252
get_cluster_status_scs:

0 commit comments

Comments
 (0)