summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2011-01-31 15:25:09 -0500
committerScott Moser <smoser@ubuntu.com>2011-01-31 15:25:09 -0500
commit0b0a684496932b9c627f5d566523bff0dbce07ac (patch)
tree0a1f5e0b07f67d2b38a6ce0eb78d0956e527dd05
parent7d26b49482f5e7a4205d3a7999cd9db11a696993 (diff)
downloadvyos-cloud-init-0b0a684496932b9c627f5d566523bff0dbce07ac.tar.gz
vyos-cloud-init-0b0a684496932b9c627f5d566523bff0dbce07ac.zip
allow 'ds=nocloud' to appear at end or beginning kernel cmdline
-rw-r--r--cloudinit/DataSourceNoCloud.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/cloudinit/DataSourceNoCloud.py b/cloudinit/DataSourceNoCloud.py
index 6403d879..4cbbeded 100644
--- a/cloudinit/DataSourceNoCloud.py
+++ b/cloudinit/DataSourceNoCloud.py
@@ -106,6 +106,7 @@ class DataSourceNoCloud(DataSource.DataSource):
def parse_cmdline_data(ds_id,fill,cmdline=None):
if cmdline is None:
cmdline = util.get_cmdline()
+ cmdline = " %s " % cmdline
if not ( " %s " % ds_id in cmdline or " %s;" % ds_id in cmdline ):
return False