From a8668153b08a7e919e3795a5e93201fa99f7224c Mon Sep 17 00:00:00 2001 From: Scott Moser Date: Tue, 18 Feb 2014 12:58:21 -0500 Subject: NoCloud: fix broken seed from external image --- cloudinit/sources/DataSourceNoCloud.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'cloudinit') diff --git a/cloudinit/sources/DataSourceNoCloud.py b/cloudinit/sources/DataSourceNoCloud.py index cbaac29f..8dc96ab6 100644 --- a/cloudinit/sources/DataSourceNoCloud.py +++ b/cloudinit/sources/DataSourceNoCloud.py @@ -90,7 +90,7 @@ class DataSourceNoCloud(sources.DataSource): found.append("ds_config") def _pp2d_callback(mp, data): - util.pathprefix2dict(mp, **data) + return util.pathprefix2dict(mp, **data) label = self.ds_cfg.get('fs_label', "cidata") if label is not None: @@ -110,7 +110,8 @@ class DataSourceNoCloud(sources.DataSource): LOG.debug("Attempting to use data from %s", dev) try: - seeded = util.mount_cb(dev, _pp2d_callback) + seeded = util.mount_cb(dev, _pp2d_callback, + pp2d_kwargs) except ValueError as e: if dev in label_list: LOG.warn("device %s with label=%s not a" @@ -123,7 +124,7 @@ class DataSourceNoCloud(sources.DataSource): # that is more likely to be what is desired. If they want # dsmode of local, then they must specify that. if 'dsmode' not in mydata['meta-data']: - mydata['meta-data'] = "net" + mydata['dsmode'] = "net" LOG.debug("Using data from %s", dev) found.append(dev) -- cgit v1.2.3