本文整理汇总了Python中wok.plugins.kimchi.model.featuretests.FeatureTests.disable_libvirt_error_logging方法的典型用法代码示例。如果您正苦于以下问题:Python FeatureTests.disable_libvirt_error_logging方法的具体用法?Python FeatureTests.disable_libvirt_error_logging怎么用?Python FeatureTests.disable_libvirt_error_logging使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类wok.plugins.kimchi.model.featuretests.FeatureTests
的用法示例。
在下文中一共展示了FeatureTests.disable_libvirt_error_logging方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: _clean_leftovers
# 需要导入模块: from wok.plugins.kimchi.model.featuretests import FeatureTests [as 别名]
# 或者: from wok.plugins.kimchi.model.featuretests.FeatureTests import disable_libvirt_error_logging [as 别名]
def _clean_leftovers(self):
conn = self.conn.get()
FeatureTests.disable_libvirt_error_logging()
try:
dom = conn.lookupByName(FEATURETEST_VM_NAME)
dom.undefine()
except Exception:
# Any exception can be ignored here
pass
try:
pool = conn.storagePoolLookupByName(FEATURETEST_POOL_NAME)
pool.undefine()
except Exception:
# Any exception can be ignored here
pass
FeatureTests.enable_libvirt_error_logging()