diff options
Diffstat (limited to 'cloudinit/util.py')
-rw-r--r-- | cloudinit/util.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cloudinit/util.py b/cloudinit/util.py index 596054f2..f1a0d50d 100644 --- a/cloudinit/util.py +++ b/cloudinit/util.py @@ -28,7 +28,8 @@ def read_conf(fname): def get_cfg_option_bool(yobj, key, default=False): if not yobj.has_key(key): return default val = yobj[key] - if yobj[key] in [ True, '1', 'on', 'yes', 'true']: + if val is True: return True + if str(val).lower() in [ 'true', '1', 'on', 'yes']: return True return False |