Skip to content
This repository was archived by the owner on May 9, 2020. It is now read-only.

Commit b372f70

Browse files
committed
Add a special case for client searches
Fixes #13.
1 parent cae15cb commit b372f70

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

chef/search.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ def object(self):
2020
chef_class = self.get('json_class', '')
2121
if chef_class.startswith('Chef::'):
2222
chef_class = chef_class[6:]
23+
if chef_class == 'ApiClient':
24+
chef_class = 'Client' # Special case since I don't match the Ruby name.
2325
cls = ChefObject.types.get(chef_class.lower())
2426
if not cls:
2527
raise ValueError('Unknown class %s'%chef_class)

0 commit comments

Comments
 (0)