|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] Re: xm, no such domain error code...
Not sure what happened to my reply, so here it is again, slightly modified. I'll attempt to, I'm not too familiar with python. From what it looks like the exit code is actually already defined. If youhave a look at tools/python/xen/xend/XendClient.py you will find a macro setup that sets ERROR_INVALID_DOMAIN to 3. This is also whats checked in ./tools/python/xen/xm/main.py
if ex.faultCode == XendClient.ERROR_INVALID_DOMAIN:
err("Domain '%s' does not exist." % ex.faultString)
else:
err(ex.faultString)
_usage(cmd_name)
The problem is that at the end of this function a generic "return False, 1"
is used... I think the easiest thing to do would be to just add a line after
thant err() function with "return False, ex.faultCode"
What do you think? I did this on my install and it worked perfect! 3 was returned to $? ~Shaun Reitan
_______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |