Comment 5 for bug 2042596

Revision history for this message
Tony Meyer (tony-meyer) wrote :

@jameinel [said](https://github.com/canonical/operator/pull/1060#issuecomment-1810157027):

> I feel like Juju should only error if both label and id are supplied and they don't match the existing recorded information.
> You have to supply both the first time in order to establish a correspondence. eg, the first time you ask about a secret, if you want it to be labeled, you clearly must supply both the id and the label. Once you've established that relationship, it is probably incorrect to supply a different label and id pair (because then there is ambiguity in whether you want the content of the id, or the content of the label). But as long as they match, why would we error?

And that and other discussion in that PR lead to the conclusion that this should change in Juju rather than in ops. Happy to sync on this in the fortnightly Juju cross-team if that would help?