Skip to content

Commit 9eb0ea2

Browse files
committed
Make generation of public/private key optional
1 parent 971df56 commit 9eb0ea2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

chef/client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,11 @@ def to_dict(self):
4242
return d
4343

4444
@classmethod
45-
def create(cls, name, api=None, admin=False):
45+
def create(cls, name, api=None, admin=False, create_key=True):
4646
api = api or ChefAPI.get_global()
4747
obj = cls(name, api, skip_load=True)
4848
obj.admin = admin
49+
obj.create_key = create_key
4950
d = api.api_request('POST', cls.url, data=obj)
5051
obj.private_key = d['private_key']
5152
obj.public_key = d['public_key']

0 commit comments

Comments
 (0)