本文整理汇总了Python中cloud.aws.CloudHost.register_instance_dns方法的典型用法代码示例。如果您正苦于以下问题:Python CloudHost.register_instance_dns方法的具体用法?Python CloudHost.register_instance_dns怎么用?Python CloudHost.register_instance_dns使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类cloud.aws.CloudHost
的用法示例。
在下文中一共展示了CloudHost.register_instance_dns方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: run
# 需要导入模块: from cloud.aws import CloudHost [as 别名]
# 或者: from cloud.aws.CloudHost import register_instance_dns [as 别名]
def run(self):
try:
CloudHost.deregister_instance_dns()
except:
CloudHost.log_info("No prior dns registration found for the instance")
CloudHost.register_instance_dns()
JBoxContainer.publish_container_stats()
JBox.do_update_user_home_image()
JBoxContainer.async_refresh_disks()
self.ct.start()
self.ioloop.start()
示例2: run
# 需要导入模块: from cloud.aws import CloudHost [as 别名]
# 或者: from cloud.aws.CloudHost import register_instance_dns [as 别名]
def run(self):
if CloudHost.ENABLED['route53']:
try:
CloudHost.deregister_instance_dns()
CloudHost.log_warn("Prior dns registration was found for the instance")
except:
CloudHost.log_debug("No prior dns registration found for the instance")
CloudHost.register_instance_dns()
JBoxContainer.publish_container_stats()
JBox.do_update_user_home_image()
JBoxContainer.async_refresh_disks()
self.ct.start()
self.ioloop.start()