X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Futil%2Fconfig.py;h=3a3d36a8af54585508ec38373d4aa15221057fd9;hb=177b96762d2b0d94af773c14e5a7cee161be3129;hp=2c06736590079be4493ace48b2c4236821245912;hpb=41f9554065fe9e8485ba65b361f259ef2ac00a82;p=sfa.git 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()