Commit 15dbc720 authored by Ioannis Papagiannopoulos's avatar Ioannis Papagiannopoulos Committed by Jérome Perrin

availableOperators method returns all pool operators that are available currently

parent 9c343788
......@@ -105,6 +105,12 @@ class OperatorPool(ObjectResource):
freeOperator=operator
break
return freeOperator
#===========================================================================
# returns the operators that are currently available
#===========================================================================
def availableOperators(self):
return [operator for operator in self.operators if operator.checkIfResourceIsAvailable()]
# =======================================================================
# returns the resource
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment