← Back to team overview

cloud-init-dev team mailing list archive

Re: [Merge] lp:~utlemming/cloud-init/smartos_base64 into lp:cloud-init

 

for getting config out of sys_config, you need to get at sysconfig['datasource']['smartos'].
if you've called DataSource's __init__, it will have set .ds_cfg for you.

class DataSource(object):

    __metaclass__ = abc.ABCMeta

    def __init__(self, sys_cfg, distro, paths, ud_proc=None):
        self.sys_cfg = sys_cfg


-- 
https://code.launchpad.net/~utlemming/cloud-init/smartos_base64/+merge/177716
Your team cloud init development team is requested to review the proposed merge of lp:~utlemming/cloud-init/smartos_base64 into lp:cloud-init.