summaryrefslogtreecommitdiffstats
path: root/src/virt-viewer-main.c
diff options
context:
space:
mode:
authorPavel Grunt <pgrunt@redhat.com>2015-04-14 16:19:38 +0200
committerPavel Grunt <pgrunt@redhat.com>2015-04-14 18:20:20 +0200
commit5c95093c8222793cf7a1d2bd6a2e8cf6117b5666 (patch)
tree171020f12279449f632f590ca9a17526fdf1dddb /src/virt-viewer-main.c
parent10264d0d1ecbd67d3e59e3a1a3032936b0635eda (diff)
downloadvirt-viewer-5c95093c8222793cf7a1d2bd6a2e8cf6117b5666.tar.gz
virt-viewer-5c95093c8222793cf7a1d2bd6a2e8cf6117b5666.tar.xz
virt-viewer-5c95093c8222793cf7a1d2bd6a2e8cf6117b5666.zip
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
Diffstat (limited to 'src/virt-viewer-main.c')
-rw-r--r--src/virt-viewer-main.c5
1 files changed, 0 insertions, 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;