问题
What are the equivalent translations for:
knife client delete notcool.my.com
knife client create cool.my.com
in PyChef?
回答1:
from chef import autoconfigure, Client
api = autoconfigure()
Client.delete('notcool.my.com')
Client.create('cool.my.com')
来源:https://stackoverflow.com/questions/26128891/how-to-do-knife-client-delete-and-knife-client-create-using-pychef