Skip to content

Commit

Permalink
Add timeout for script_run "test -e $inventory"
Browse files Browse the repository at this point in the history
  • Loading branch information
badboywj committed Aug 21, 2024
1 parent 80f13df commit 90c771a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/qesapdeployment.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1273,7 +1273,8 @@ sub qesap_cluster_log_cmds {
sub qesap_cluster_logs {
my $provider = get_required_var('PUBLIC_CLOUD_PROVIDER');
my $inventory = qesap_get_inventory(provider => $provider);
if (script_run("test -e $inventory") == 0)

if (script_run("test -e $inventory", 60) == 0)
{
foreach my $host ('hana[0]', 'hana[1]') {
foreach my $cmd (qesap_cluster_log_cmds()) {
Expand Down

0 comments on commit 90c771a

Please sign in to comment.