Running with a modern pykickstart (as opposed to the one included in
RHEL5) does much better; however, errors still don't appear to be passed
out to the shell:
----------------------------
checking url: http://169.254.0.1/cblr/svc/op/ks/system/00:16:3e:67:2b:43
General error in input file: 'str' object has no attribute 'partition'
----------------------------
checking url: http://169.254.0.1/cblr/svc/op/ks/system/00:16:3e:c9:95:47
General error in input file: 'str' object has no attribute 'partition'
*** potential errors detected in kickstarts ***
[EMAIL PROTECTED] ~]# echo $?
0
By contrast, this version of pykickstart *does* correctly reflect errors
in its exit status:
[EMAIL PROTECTED] ~]# ksvalidator
http://169.254.0.1/cblr/svc/op/ks/system/00:16:3e:c9:95:47; echo $?
General error in input file: 'str' object has no attribute 'partition'
1
See attached patch.
diff --git a/scripts/cobbler b/scripts/cobbler
index 1b69ab6..b994eb6 100755
--- a/scripts/cobbler
+++ b/scripts/cobbler
@@ -15,5 +15,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
"""
import cobbler.cobbler as app
-app.main()
+import sys
+sys.exit(app.main())
_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler