如何使用PyChef进行“刀客户端删除”和“刀客户端创建”?

2024-05-14 17:58:17 发布

您现在位置:Python中文网/ 问答频道 /正文

什么是等效翻译:

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

PyChef?在


Tags: comclientmycreatedeletecoolpychefknife
1条回答
网友
1楼 · 发布于 2024-05-14 17:58:17
from chef import autoconfigure, Client
api = autoconfigure()
Client.delete('notcool.my.com')
Client.create('cool.my.com')

相关问题 更多 >

    热门问题