summaryrefslogtreecommitdiff
path: root/cloudinit/sources
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@yahoo-inc.com>2012-08-26 15:11:41 -0700
committerJoshua Harlow <harlowja@yahoo-inc.com>2012-08-26 15:11:41 -0700
commitddc50b7450d5defcd1e05732fb3502d230926731 (patch)
tree69bd520872d1ed71aa63b22e357b409f5537de0a /cloudinit/sources
parent6a803e2fba17ab74973038c1a93654c3127c223f (diff)
downloadvyos-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__.py2
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