Revert "virt-viewer-main: exit when domain names doesn't match"

This reverts commit 10264d0d1e.

Commit a830275344 required 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:
Pavel Grunt 2015-04-14 16:19:38 +02:00
parent 10264d0d1e
commit 5c95093c82

View File

@ -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;