diff options
author | Scott Moser <smoser@ubuntu.com> | 2011-02-07 13:05:34 -0500 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2011-02-07 13:05:34 -0500 |
commit | 0bb0a6a8fddbce3dafba92ea836e73eea79266d8 (patch) | |
tree | 1e6a5e7ff97c117e9e629286b14579e8eda0395a /doc/examples/seed | |
parent | c0e2f8d39e2581335390561e7d8a4d8deefd7e56 (diff) | |
download | vyos-cloud-init-0bb0a6a8fddbce3dafba92ea836e73eea79266d8.tar.gz vyos-cloud-init-0bb0a6a8fddbce3dafba92ea836e73eea79266d8.zip |
add sys_cfg option to DataSource:__init__ , populate ds_cfg from it
In order to be able to configure a DataSource via system config
(ie, what is in /etc/cloud/cloud.cfg), we pass this into the DataSource
class.
The DataSource parent class will set up the 'ds_cfg' member based
on the subclass name. So, DataSourceEc2 will get:
self.ds_cfg = sys_cfg['datasource']['Ec2']
populated for it.
Diffstat (limited to 'doc/examples/seed')
0 files changed, 0 insertions, 0 deletions