Skip to content

Commit

Permalink
Merge pull request os-autoinst#20231 from lilyeyes/use-choose_node-to…
Browse files Browse the repository at this point in the history
…-get-remote-node

Use choose_node to get remote node hostname
  • Loading branch information
BillAnastasiadis authored Sep 19, 2024
2 parents addfb3c + d072d04 commit 05d5793
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/sles4sap/sap_suse_cluster_connector.pm
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ sub run {
validate_script_output("cat $log_file | cut -d : -f 4", sub { m/$hostname/ });
record_info("Found $hostname in lsn output");
# Check the "node list" contains remote node
my $remote_node = script_output("crm status bynode | grep -Po '(?<=\\* Node )(.*)(?=: online:\$)' | grep -v $hostname");
my $remote_node = choose_node(2);
validate_script_output("cat $log_file | cut -d : -f 4", sub { m/$remote_node/ });
record_info("Found $remote_node in lsn output");
}
Expand Down

0 comments on commit 05d5793

Please sign in to comment.