X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sfa%2Futil%2Fconfig.py;h=cd3314f498c4c750933118d35dcb97ed4c840301;hb=8c92edf8a2aa28dca57bb8a4eb0b1c187dd2e039;hp=7eb9ffa5c8ed9e9c782f03492089030ef7eeb814;hpb=0e705b428a94f662b8b7aef2f90792a2ab18e63e;p=sfa.git diff --git a/sfa/util/config.py b/sfa/util/config.py index 7eb9ffa5..cd3314f4 100644 --- a/sfa/util/config.py +++ b/sfa/util/config.py @@ -127,7 +127,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()) - value = "'%s'" % value + if not value.isdigit() and not bool(value): + value = "'%s'" % value buf.write(option + "=" + value + os.linesep) return buf.getvalue()