Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Check for policy returning None in HA core

  • Loading branch information...
commit f853398ff022959f895682bd9cdf0f68fff80d6d 1 parent 792b83e
@oldpatricka oldpatricka authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 epu/highavailability/core.py
View
4 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
Please sign in to comment.
Something went wrong with that request. Please try again.