We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6b4909 commit 7c0b642Copy full SHA for 7c0b642
component/all/resource.go
@@ -210,7 +210,9 @@ func (r resources) registerHookContextFacade() {
210
func (r resources) registerUnitDownloadEndpoint() {
211
common.RegisterAPIModelEndpoint(privateapi.HTTPEndpointPattern, apihttp.HandlerSpec{
212
Constraints: apihttp.HandlerConstraints{
213
- AuthKinds: []string{names.UnitTagKind},
+ // Machines are allowed too so that unit resources can be
214
+ // retrieved for model migrations.
215
+ AuthKinds: []string{names.UnitTagKind, names.MachineTagKind},
216
StrictValidation: true,
217
ControllerModelOnly: false,
218
},
0 commit comments