Permalink
Browse files

Check for policy returning None in HA core

  • Loading branch information...
1 parent 792b83e commit f853398ff022959f895682bd9cdf0f68fff80d6d @oldpatricka oldpatricka committed Mar 26, 2013
Showing with 3 additions and 1 deletion.
  1. +3 −1 epu/highavailability/core.py
@@ -68,7 +68,9 @@ def apply_policy(self):
log.debug("%sapplying policy", self.logprefix)
all_procs = self.control.get_all_processes()
- self.managed_upids = list(self.policy.apply_policy(all_procs, self.managed_upids))
+ managed_upids = self.policy.apply_policy(all_procs, self.managed_upids)
+ if managed_upids is not None:
+ self.managed_upids = managed_upids
def set_managed_upids(self, upids):
"""Called to override the managed process set, for HAAgent restart

0 comments on commit f853398

Please sign in to comment.