Skip to content

Commit

Permalink
Merge pull request #532 from AmineChikhaoui/sns-fix
Browse files Browse the repository at this point in the history
SNS fix
  • Loading branch information
rbvermaa committed Oct 31, 2016
2 parents af3799a + 683ce44 commit 6c42ab0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nixops/resources/sns_topic.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@ def create(self, defn, check, allow_reboot, allow_recreate):
for subscriber_endpoint, subscriber_arn in current_subscriptions_arns.items():
if subscriber_endpoint not in defn_endpoints:
self.log("removing SNS subscriber with endpoint '{0}'...".format(subscriber_endpoint))
self._conn.unsubscribe(subscription=subscriber_arn)
if subscriber_arn != "PendingConfirmation":
self._conn.unsubscribe(subscription=subscriber_arn)

with self.depl._db:
self.state = self.UP
Expand Down

0 comments on commit 6c42ab0

Please sign in to comment.