def get_core_definition(self, config):
"""
Get the Master Group Type's core definition
:param config: gg_group_setup.GroupConfigFile used with the Group Type
:return: the core definition used to provision the group
"""
cfg = config
definition = [{
"ThingArn": cfg['core']['thing_arn'],
"CertificateArn": cfg['core']['cert_arn'],
"Id": "{0}_00".format(self.type_name), # arbitrary unique Id string
"SyncShadow": True
}]
logging.debug('[master.get_core_definition] definition:{0}'.format(
definition)
)
return definition
group_setup.py 文件源码
python
阅读 46
收藏 0
点赞 0
评论 0
评论列表
文章目录