summaryrefslogtreecommitdiff
path: root/cloudinit
diff options
context:
space:
mode:
authorharlowja <harlowja@virtualbox.rhel>2012-07-09 22:52:06 -0700
committerharlowja <harlowja@virtualbox.rhel>2012-07-09 22:52:06 -0700
commit6f3bba76d6cfbde64d0c7cc9f52effee8e8dd319 (patch)
tree691143d9d86215b27e75652c802ecfca10c6edea /cloudinit
parent954f3d58388b9826dd6db4128e494ad36298db3e (diff)
downloadvyos-cloud-init-6f3bba76d6cfbde64d0c7cc9f52effee8e8dd319.tar.gz
vyos-cloud-init-6f3bba76d6cfbde64d0c7cc9f52effee8e8dd319.zip
Use the common 'is_false' routine for testing false here instead
of a custom list that may confuse people trying to use this.
Diffstat (limited to 'cloudinit')
-rw-r--r--cloudinit/util.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/util.py b/cloudinit/util.py
index e591e306..6501cbdf 100644
--- a/cloudinit/util.py
+++ b/cloudinit/util.py
@@ -828,7 +828,7 @@ def close_stdin():
if _CLOUD_INIT_SAVE_STDIN is set in environment to a non empty or '0' value
then input will not be closed (only useful potentially for debugging).
"""
- if os.environ.get("_CLOUD_INIT_SAVE_STDIN") in ("", "0", 'False'):
+ if is_false(os.environ.get("_CLOUD_INIT_SAVE_STDIN")):
return
with open(os.devnull) as fp:
os.dup2(fp.fileno(), sys.stdin.fileno())