Re-do
0217089 so it does not add regression for commit
c0726e0 that allowed to
print help without making a connection to the daemon.
if (!vshInit(ctl, cmdGroups, NULL))
exit(EXIT_FAILURE);
- ctl->connname = vshStrdup(ctl, virGetEnvBlockSUID("VIRSH_DEFAULT_CONNECT_URI"));
-
if (!virshParseArgv(ctl, argc, argv) ||
!virshInit(ctl)) {
virshDeinit(ctl);
exit(EXIT_FAILURE);
}
+ if (!ctl->connname)
+ ctl->connname = vshStrdup(ctl,
+ virGetEnvBlockSUID("VIRSH_DEFAULT_CONNECT_URI"));
+
if (!ctl->imode) {
ret = vshCommandRun(ctl, ctl->cmd);
} else {