From: Tony Mack Date: Mon, 6 Aug 2012 00:09:28 +0000 (-0400) Subject: fix out output_shell handles bools X-Git-Tag: sfa-2.1-14~68 X-Git-Url: http://git.onelab.eu/?p=sfa.git;a=commitdiff_plain;h=177b96762d2b0d94af773c14e5a7cee161be3129 fix out output_shell handles bools --- diff --git a/sfa/util/config.py b/sfa/util/config.py index 2c067365..3a3d36a8 100644 --- a/sfa/util/config.py +++ b/sfa/util/config.py @@ -162,8 +162,8 @@ DO NOT EDIT. This file was automatically generated at # bash does not have the concept of NULL if value: option = "%s_%s" % (section.upper(), name.upper()) - if not value.isdigit() and not bool(value): - value = "'%s'" % value + if bool(value) and not value.isdigit(): + value = str(bool(value)) buf.write(option + "=" + value + os.linesep) return buf.getvalue()