在您的代码中访问选项值¶
默认组中的选项值作为配置管理器的属性/特性引用;组也是配置管理器的属性,并且具有与该组关联的每个选项的属性
server.start(app, conf.bind_port, conf.bind_host, conf)
self.connection = kombu.connection.BrokerConnection(
hostname=conf.rabbit.host,
port=conf.rabbit.port,
...)
默认组中的选项值作为配置管理器的属性/特性引用;组也是配置管理器的属性,并且具有与该组关联的每个选项的属性
server.start(app, conf.bind_port, conf.bind_host, conf)
self.connection = kombu.connection.BrokerConnection(
hostname=conf.rabbit.host,
port=conf.rabbit.port,
...)
除非另有说明,此文档根据 知识共享署名 3.0 许可 授权。请参阅所有 OpenStack 法律文档。