Skip to content

Commit

Permalink
Merge pull request os-autoinst#1099 from foursixnine/silence-of-the-l…
Browse files Browse the repository at this point in the history
…ambs

Silence complain about undefined $libvirt_connector
  • Loading branch information
okurz committed Feb 11, 2019
2 parents a27d1d2 + bd1b27c commit e764de3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/svirt.pm
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ sub is_shutdown {
$rsp = $self->run_cmd("powershell -Command \"if (\$(Get-VM -VMName $vmname \| Where-Object {\$_.state -eq 'Off'})) { exit 1 } else { exit 0 }\"");
}
else {
my $libvirt_connector = get_var('VMWARE_REMOTE_VMM');
my $libvirt_connector = get_var('VMWARE_REMOTE_VMM', '');
$rsp = $self->run_cmd("! virsh $libvirt_connector dominfo $vmname | grep -w 'shut off'");
}
return $rsp;
Expand Down

0 comments on commit e764de3

Please sign in to comment.