auto_content.py 文件源码

python
阅读 44 收藏 0 点赞 0 评论 0

项目:sat6_scripts 作者: RedHatSatellite 项目源码 文件源码
def promote_cv(dryrun, lifecycle):
    print "Running Content View Promotion to " + lifecycle + "..."

    # Set the initial state
    good_promote = False

    if not dryrun:
        rc = subprocess.call(['/usr/local/bin/promote_content_views', '-q', '-e', lifecycle])
    else:
        msg = "Dry run - not actually performing promotion"
        helpers.log_msg(msg, 'WARNING')
        rc = subprocess.call(['/usr/local/bin/promote_content_views', '-q', '-d', '-e', lifecycle])

    if rc == 0:
        good_promote = True

    return good_promote
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号