Skip to content

Commit

Permalink
Don't remove the service if the delete command is scoped
Browse files Browse the repository at this point in the history
When the scope matches all resources, the agent decided to remove the
service altogether. Which is wrong, as the user might want to flush the
resources and insert new ones.
  • Loading branch information
cvaroqui committed Jan 7, 2018
1 parent 300b1c3 commit f48a02c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/svc.py
Original file line number Diff line number Diff line change
Expand Up @@ -4270,8 +4270,7 @@ def delete(self):
if self.options.unprovision:
self.unprovision()

if not self.command_is_scoped() or \
len(self.action_rid) == len(self.resources_by_id.keys()):
if not self.command_is_scoped():
for peer in self.peers:
if peer == rcEnv.nodename:
continue
Expand Down

0 comments on commit f48a02c

Please sign in to comment.