Skip to content

Commit

Permalink
Allow filtering of nodes, with resource_class
Browse files Browse the repository at this point in the history
  • Loading branch information
tzumainn committed May 29, 2024
1 parent 43215ec commit b98b9dd
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 b98b9dd

Please sign in to comment.