【问题标题】:how to do 'knife client delete' and 'knife client create' using PyChef?如何使用 PyChef 进行“刀客户端删除”和“刀客户端创建”?
【发布时间】:2014-10-01 04:32:48
【问题描述】:

什么是等价的翻译:

knife client delete notcool.my.com
knife client create cool.my.com

PyChef?

【问题讨论】:

    标签: python chef-infra pychef


    【解决方案1】:
    from chef import autoconfigure, Client
    api = autoconfigure()
    Client.delete('notcool.my.com')
    Client.create('cool.my.com')
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-10-23
      • 2019-12-04
      • 1970-01-01
      • 2015-11-01
      • 1970-01-01
      • 2012-01-03
      相关资源
      最近更新 更多