forked from juju/juju
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: returned uuid when inserting charm with same hash
This fixes an issue presented when we tried to deploy the same charm twice (or the same charm from charmhub and then from local). The error was that in the case of a conflict in the hash, the same line in the db was used for the object store metadata, but the returned UUID was still a new one. Now the UUID corresponding to that line gets returned.
- Loading branch information
Showing
2 changed files
with
14 additions
and
4 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