Consider return boolean values from pre_ops
This commit is contained in:
parent
c86a3f190d
commit
605d5297bd
@ -39,7 +39,9 @@ class UpdatePolicy(base.PolicyBase):
|
||||
|
||||
def pre_op(self, cluster_id, action, **args):
|
||||
# select candidates for update based on criteria
|
||||
return candidates
|
||||
|
||||
# TODO: return True/False
|
||||
return True
|
||||
|
||||
def enforce(self, cluster_id, action, **args):
|
||||
pass
|
||||
|
Loading…
Reference in New Issue
Block a user