New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Silence complain about undefined $libvirt_connector #1099
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But it makes still sense to execute the command below because $VMWARE_REMOTE_VMM
is only supposed to contain a global option, right?
Correct, other backends using virsh will still work |
backend/svirt.pm
Outdated
@@ -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') || ''; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When already using testapi methods I suggest to use them also here to handle the value feedback, so
get_var('too', '')
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch :)
f88ceee
to
7470d48
Compare
7470d48
to
bd1b27c
Compare
We've just discussed with @mnowaksuse, that it'll be better to refactor consoles/sshVirtsh.pm ( |
No description provided.