mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/virt-viewer
synced 2026-01-13 04:42:30 +00:00
Revert "virt-viewer-main: exit when domain names doesn't match"
This reverts commit10264d0d1e. Commita830275344required the domain name to be placed just after the '--wait' option. It broke the command line api, because running 'virt-viewer $vm --wait' was considered as the error. Related: rhbz#1209398, rhbz#1211573
This commit is contained in:
parent
10264d0d1e
commit
5c95093c82
@ -108,11 +108,6 @@ int main(int argc, char **argv)
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
if (args && waitvm != NULL && g_strcmp0(waitvm, args[0]) != 0) {
|
||||
g_printerr(_("\nDomain names mismatch, got '%s' and '%s'\n\n%s\n\n"), waitvm, args[0], help_msg);
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
viewer = virt_viewer_new(uri, (args) ? args[0] : waitvm, direct, attach, waitvm != NULL, reconnect);
|
||||
if (viewer == NULL)
|
||||
goto cleanup;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user