Skip to content

Commit

Permalink
add get_cloud_credentials() (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
konstan authored and 0xbase12 committed Oct 24, 2017
1 parent b6c3464 commit 30e62b8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/slipstream/api/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1171,5 +1171,8 @@ def _convert_parameters_to_raw_params(cls, parameters):

return raw_params



def get_cloud_credentials(self, cimi_filter=''):
filter = "type^='cloud-cred'"
if cimi_filter:
filter += 'and %s' % cimi_filter
return self.cimi_search(resource_type='credentials', filter=filter)
3 changes: 3 additions & 0 deletions src/slipstream/api/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ def resources_list(self):
list(self.resources())
return self.__resources

def __iter__(self):
return self.resources()


class CloudEntryPoint(CimiResource):

Expand Down

0 comments on commit 30e62b8

Please sign in to comment.