Hello,
I apologize for the lack of quoting -- I just subscribed to the list
so I don't have the original message available.
This is reproducible on 2.0.5 as well.
A quick workaround is to edit line 211 of
"/usr/lib/python2.4/site-packages/cobbler/cli.py". That area of code
should look like this:
else:
print "### ERROR ###"
print "Unexpected remote error, check the server side
logs for further info"
print err.faultString
sys.exit(1)
Remove a layer of indentation of sys.exit(1) so the code now appears as:
else:
print "### ERROR ###"
print "Unexpected remote error, check the server side
logs for further info"
print err.faultString
sys.exit(1)
$? now returns 1 when given the erroneous "system add" command. I have
no idea if this change is proper for the rest of the Cobbler
architecture, so please take this as a hack-ish solution. :)
Thanks,
Joe
_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler