-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix remove integration with multiple consumers
Currently removing an integration with an offer removes the remote offer. This does not take into consideration of any other consumers integrated with the offer. This leads to other consumers getting relation-broken which is not expected. Check for number of consumers during delete integration for an offer. Remove RemoteOffer only when the current integration is the only consumer to the offer. Otherwise use DestroyIntegration that removes only the integration between the calling comsumer and the offer without affecting the relation between other consumers and offer. Fixes: #308
- Loading branch information
1 parent
452b1ff
commit 88b9328
Showing
3 changed files
with
172 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters