Consider return boolean values from pre_ops

This commit is contained in:
tengqm 2014-12-16 09:44:52 +08:00
parent c86a3f190d
commit 605d5297bd

View File

@ -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