From 5c95093c8222793cf7a1d2bd6a2e8cf6117b5666 Mon Sep 17 00:00:00 2001 From: Pavel Grunt Date: Tue, 14 Apr 2015 16:19:38 +0200 Subject: [PATCH] Revert "virt-viewer-main: exit when domain names doesn't match" This reverts commit 10264d0d1ecbd67d3e59e3a1a3032936b0635eda. Commit a830275344c88aef12166661b68ea2b4429c7212 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 --- src/virt-viewer-main.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/virt-viewer-main.c b/src/virt-viewer-main.c index 638087f..8c1ca80 100644 --- a/src/virt-viewer-main.c +++ b/src/virt-viewer-main.c @@ -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;