Skip to content

Commit

Permalink
Use choose_node to get remote node hostname
Browse files Browse the repository at this point in the history
  • Loading branch information
lilyeyes committed Sep 19, 2024
1 parent 304e4ab commit d072d04
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 d072d04

Please sign in to comment.