diff options
author | Joshua Harlow <harlowja@yahoo-inc.com> | 2012-06-16 13:23:32 -0700 |
---|---|---|
committer | Joshua Harlow <harlowja@yahoo-inc.com> | 2012-06-16 13:23:32 -0700 |
commit | a1f20dff76b00c7502f005c2b597f49c89cc2a09 (patch) | |
tree | d7a1811801c69d53329c7edb57c21a4087f4e098 /cloudinit/handlers | |
parent | 8c227a784b948b98d35a386da5d203bd54ea35e5 (diff) | |
download | vyos-cloud-init-a1f20dff76b00c7502f005c2b597f49c89cc2a09.tar.gz vyos-cloud-init-a1f20dff76b00c7502f005c2b597f49c89cc2a09.zip |
Check instance id against none, and not just empty/false/0/none since 0 or empty might be valid
Diffstat (limited to 'cloudinit/handlers')
-rw-r--r-- | cloudinit/handlers/boot_hook.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/handlers/boot_hook.py b/cloudinit/handlers/boot_hook.py index fa675f09..456b8020 100644 --- a/cloudinit/handlers/boot_hook.py +++ b/cloudinit/handlers/boot_hook.py @@ -63,7 +63,7 @@ class BootHookPartHandler(handlers.Handler): filepath = self._write_part(payload, filename) try: env = os.environ.copy() - if self.instance_id: + if self.instance_id is not None: env['INSTANCE_ID'] = str(self.instance_id) util.subp([filepath], env=env) except util.ProcessExecutionError: |