Skip to content
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

Merged
merged 1 commit into from Feb 11, 2019

Conversation

foursixnine
Copy link
Member

No description provided.

Copy link
Contributor

@Martchus Martchus left a 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?

@foursixnine
Copy link
Member Author

But it makes still sense to execute the command above 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') || '';
Copy link
Member

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', '')

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch :)

@pevik
Copy link
Contributor

pevik commented Feb 7, 2019

We've just discussed with @mnowaksuse, that it'll be better to refactor consoles/sshVirtsh.pm (add_disk()) backend/svirt.pm to move vmware specific functions to it's own functions (but it a question when some of us find a time for it):
https://progress.opensuse.org/issues/47258

@okurz okurz merged commit e764de3 into os-autoinst:master Feb 11, 2019
@foursixnine foursixnine deleted the silence-of-the-lambs branch February 18, 2019 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants