Skip to content

Commit

Permalink
Fix a case of json dumping group status as integer instead of str
Browse files Browse the repository at this point in the history
  • Loading branch information
cvaroqui committed Sep 23, 2017
1 parent 99bd499 commit 7504416
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/svc.py
Expand Up @@ -2279,7 +2279,7 @@ def group_status(self, groups=None, excluded_groups=None):
status["avail"].status = rcStatus.UP
for group in status:
if status[group] == rcStatus.STDBY_UP:
status[group] = rcStatus.UP
status[group].status = rcStatus.UP
elif status["avail"].status == rcStatus.STDBY_UP_WITH_DOWN:
status["avail"].status = rcStatus.STDBY_UP

Expand Down

0 comments on commit 7504416

Please sign in to comment.