diff options
author | Joshua Harlow <harlowja@yahoo-inc.com> | 2012-08-26 15:11:41 -0700 |
---|---|---|
committer | Joshua Harlow <harlowja@yahoo-inc.com> | 2012-08-26 15:11:41 -0700 |
commit | ddc50b7450d5defcd1e05732fb3502d230926731 (patch) | |
tree | 69bd520872d1ed71aa63b22e357b409f5537de0a /cloudinit/sources | |
parent | 6a803e2fba17ab74973038c1a93654c3127c223f (diff) | |
download | vyos-cloud-init-ddc50b7450d5defcd1e05732fb3502d230926731.tar.gz vyos-cloud-init-ddc50b7450d5defcd1e05732fb3502d230926731.zip |
Don't use the processed userdata if nothing is there.
Diffstat (limited to 'cloudinit/sources')
-rw-r--r-- | cloudinit/sources/__init__.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cloudinit/sources/__init__.py b/cloudinit/sources/__init__.py index a1939d58..a3f4af1e 100644 --- a/cloudinit/sources/__init__.py +++ b/cloudinit/sources/__init__.py @@ -72,6 +72,8 @@ class DataSource(object): return None def _filter_userdata(self, processed_ud): + if not processed_ud: + return processed_ud idx = self.get_launch_index() if idx is None: return processed_ud |