diff options
author | Scott Moser <smoser@ubuntu.com> | 2016-07-13 22:36:23 -0400 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2016-07-13 22:36:23 -0400 |
commit | 22a93665b90fa7fba80946d690330eda890f50d4 (patch) | |
tree | 3df7b9a8f4c12529e2d87d6214316db03e62dced /cloudinit/sources/__init__.py | |
parent | 7d58c949c2f5d7821ec664ed25167dfea92964f7 (diff) | |
parent | 333eea5105956c978043579a49d935af6d3ceff2 (diff) | |
download | vyos-cloud-init-22a93665b90fa7fba80946d690330eda890f50d4.tar.gz vyos-cloud-init-22a93665b90fa7fba80946d690330eda890f50d4.zip |
merge from trunk
Diffstat (limited to 'cloudinit/sources/__init__.py')
-rw-r--r-- | cloudinit/sources/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cloudinit/sources/__init__.py b/cloudinit/sources/__init__.py index 2a6b8d90..87b8e524 100644 --- a/cloudinit/sources/__init__.py +++ b/cloudinit/sources/__init__.py @@ -55,6 +55,8 @@ class DataSourceNotFoundException(Exception): @six.add_metaclass(abc.ABCMeta) class DataSource(object): + dsmode = DSMODE_NETWORK + def __init__(self, sys_cfg, distro, paths, ud_proc=None): self.sys_cfg = sys_cfg self.distro = distro @@ -64,7 +66,6 @@ class DataSource(object): self.userdata_raw = None self.vendordata = None self.vendordata_raw = None - self.dsmode = DSMODE_NETWORK # find the datasource config name. # remove 'DataSource' from classname on front, and remove 'Net' on end. |