Skip to content

Commit

Permalink
Fix wrong reference to the peer attribute in the provision codepath
Browse files Browse the repository at this point in the history
  • Loading branch information
cvaroqui committed Mar 30, 2018
1 parent 7d52e49 commit 3a54653
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/svc.py
Expand Up @@ -2831,7 +2831,7 @@ def unprovision(self):
def provision(self):
self.sub_set_action(START_GROUPS, "provision", xtags=set(["zone", "docker"]))

if not self.options.disable_rollback and len(svc.peers) > 1:
if not self.options.disable_rollback and len(self.peers) > 1:
# set by the daemon on the placement leaders.
# return the service to standby if not a placement leader
self.rollback()
Expand Down

0 comments on commit 3a54653

Please sign in to comment.