summaryrefslogtreecommitdiff
path: root/cloudinit/sources/DataSourceConfigDrive.py
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@gmail.com>2016-06-10 14:16:51 -0700
committerJoshua Harlow <harlowja@gmail.com>2016-06-10 14:16:51 -0700
commit6ada153ebfd9483d76f904dafaa1fc80f61c9205 (patch)
tree148f2f126032e0c8df83aabbfbe15246dd0cd973 /cloudinit/sources/DataSourceConfigDrive.py
parent30f1a6be14635aadf7c0c0b7071ddf947563a1b3 (diff)
downloadvyos-cloud-init-6ada153ebfd9483d76f904dafaa1fc80f61c9205.tar.gz
vyos-cloud-init-6ada153ebfd9483d76f904dafaa1fc80f61c9205.zip
Just mock 'on_first_boot' vs special argument
Diffstat (limited to 'cloudinit/sources/DataSourceConfigDrive.py')
-rw-r--r--cloudinit/sources/DataSourceConfigDrive.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/cloudinit/sources/DataSourceConfigDrive.py b/cloudinit/sources/DataSourceConfigDrive.py
index cea08de2..3130e618 100644
--- a/cloudinit/sources/DataSourceConfigDrive.py
+++ b/cloudinit/sources/DataSourceConfigDrive.py
@@ -62,7 +62,7 @@ class DataSourceConfigDrive(openstack.SourceMixin, sources.DataSource):
mstr += "[source=%s]" % (self.source)
return mstr
- def get_data(self, skip_first_boot=False):
+ def get_data(self):
found = None
md = {}
results = {}
@@ -111,8 +111,7 @@ class DataSourceConfigDrive(openstack.SourceMixin, sources.DataSource):
# 'injected files' and apply legacy ENI network format.
prev_iid = get_previous_iid(self.paths)
cur_iid = md['instance-id']
- if (prev_iid != cur_iid and self.dsmode == sources.DSMODE_PASS
- and not skip_first_boot):
+ if prev_iid != cur_iid and self.dsmode == sources.DSMODE_PASS:
on_first_boot(results, distro=self.distro)
LOG.debug("%s: not claiming datasource, dsmode=%s", self,
self.dsmode)