From 177b96762d2b0d94af773c14e5a7cee161be3129 Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Sun, 5 Aug 2012 20:09:28 -0400 Subject: [PATCH] fix out output_shell handles bools --- sfa/util/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() -- 2.43.0