summaryrefslogtreecommitdiff
path: root/cloudinit/sources/DataSourceCloudSigma.py
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2016-06-02 15:18:27 -0400
committerScott Moser <smoser@ubuntu.com>2016-06-02 15:18:27 -0400
commitd709524941ba2b4e06940a9eb0861f0819d5560f (patch)
tree4b26a3460b2607c4cbf1232355c000a19cb9c60a /cloudinit/sources/DataSourceCloudSigma.py
parentbd31ab1e78f59c88b4aba031ffdaca506b3b04ae (diff)
downloadvyos-cloud-init-d709524941ba2b4e06940a9eb0861f0819d5560f.tar.gz
vyos-cloud-init-d709524941ba2b4e06940a9eb0861f0819d5560f.zip
re-add the 'Net' classes for datasources
When the .pkl file is loaded, the module that it is loaded from must have the same symbol. Ie, if booted once and got DataSourceConfigDriveNet then upgraded and rebooted, then next boot would show Can't get attribute 'DataSourceConfigDriveNet'
Diffstat (limited to 'cloudinit/sources/DataSourceCloudSigma.py')
-rw-r--r--cloudinit/sources/DataSourceCloudSigma.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/cloudinit/sources/DataSourceCloudSigma.py b/cloudinit/sources/DataSourceCloudSigma.py
index 07e8ae11..d1f806d6 100644
--- a/cloudinit/sources/DataSourceCloudSigma.py
+++ b/cloudinit/sources/DataSourceCloudSigma.py
@@ -115,6 +115,9 @@ class DataSourceCloudSigma(sources.DataSource):
return self.metadata['uuid']
+# Legacy: Must be present in case we load an old pkl object
+DataSourceCloudSigmaNet = DataSourceCloudSigma
+
# Used to match classes to dependencies. Since this datasource uses the serial
# port network is not really required, so it's okay to load without it, too.
datasources = [