From: Tony Mack Date: Mon, 16 Jul 2012 16:19:41 +0000 (-0400) Subject: fix type bugs X-Git-Tag: sfa-2.1-14~111 X-Git-Url: http://git.onelab.eu/?p=sfa.git;a=commitdiff_plain;h=8c92edf8a2aa28dca57bb8a4eb0b1c187dd2e039 fix type bugs --- 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()