def wait_for_publish(seconds):
"""
Wait for all publishing tasks to terminate. Search string is:
label = Actions::Katello::ContentView::Publish and state = running
"""
count = 0
print "Waiting for publish tasks to finish..."
# Make sure that publish tasks gets the chance to appear before looking for them
time.sleep(2)
while get_json(URL + publish_tasks)["total"] != 0:
time.sleep(seconds)
count += 1
print "Finished waiting after " + str(seconds * count) + " seconds"
katello-publish-cvs.py 文件源码
python
阅读 29
收藏 0
点赞 0
评论 0
评论列表
文章目录