Skip to content

Commit

Permalink
Merge pull request #4 from tzumainn/test
Browse files Browse the repository at this point in the history
Allow filtering of nodes, with resource_class
  • Loading branch information
tzumainn authored May 29, 2024
2 parents 43215ec + b98b9dd commit 8e56bd3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions esi/cloud/_lease.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ def delete_lease(self, lease):
"""Delete a lease"""
return self.lease.delete_lease(lease)

def list_nodes(self):
def list_nodes(self, **kwargs):
"""Return a list of all nodes info"""
return list(self.lease.nodes())
return list(self.lease.nodes(**kwargs))

def list_events(self, **kwargs):
"""Return a list of events"""
Expand Down
1 change: 1 addition & 0 deletions esi/lease/v1/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ class Node(resource.Resource):
'name',
'owner',
'lessee',
'resource_class',
'offer_uuid',
'lease_uuid'
)
Expand Down

0 comments on commit 8e56bd3

Please sign in to comment.