Skip to content

Commit

Permalink
Don't aggregate children availstatus into the service availstatus
Browse files Browse the repository at this point in the history
Just aggregate slaves and scaler slaves.
  • Loading branch information
cvaroqui committed Apr 29, 2018
1 parent ed1445d commit db9ae51
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/osvcd_mon.py
Original file line number Diff line number Diff line change
Expand Up @@ -1467,8 +1467,7 @@ def get_agg_avail(self, svcname):
if n_up > 0 and n_up < instance.get("scale"):
return "warn"

slaves = instance.get("children", [])
slaves += instance.get("slaves", [])
slaves = instance.get("slaves", [])
slaves += instance.get("scaler_slaves", [])
if slaves:
avails = set([avail])
Expand Down

0 comments on commit db9ae51

Please sign in to comment.