forked from altcloud/fence-virt
Fix input parsing to allow domain again
Signed-off-by: Lon Hohberger <lon@users.sourceforge.net>
This commit is contained in:
parent
c3427373c8
commit
cb64c8c89f
@ -787,6 +787,7 @@ args_get_stdin(const char *optstr, fence_virt_args_t *args)
|
|||||||
|
|
||||||
arg = find_arg_by_string(name);
|
arg = find_arg_by_string(name);
|
||||||
if (!arg || (arg->opt != '\xff' &&
|
if (!arg || (arg->opt != '\xff' &&
|
||||||
|
arg->opt != SCHEMA_COMPAT &&
|
||||||
!strchr(optstr, arg->opt))) {
|
!strchr(optstr, arg->opt))) {
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"parse warning: "
|
"parse warning: "
|
||||||
|
@ -298,7 +298,7 @@ cluster_virt_status(const char *vm_name, uint32_t *owner)
|
|||||||
}
|
}
|
||||||
|
|
||||||
out:
|
out:
|
||||||
dbg_printf(80, "%s %s ret %d\n", __FUNCTION__, vm_name, ret);
|
dbg_printf(80, "%s %s\n", __FUNCTION__, vm_name);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -371,7 +371,7 @@ do_off(const char *vm_name)
|
|||||||
virDomainInfo vdi;
|
virDomainInfo vdi;
|
||||||
int ret = -1;
|
int ret = -1;
|
||||||
|
|
||||||
dbg_printf(5, "%s %s uuid %d\n", __FUNCTION__, vm_name, use_uuid);
|
dbg_printf(5, "%s %s\n", __FUNCTION__, vm_name);
|
||||||
vp = virConnectOpen(uri);
|
vp = virConnectOpen(uri);
|
||||||
if (!vp)
|
if (!vp)
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user