Skip to content

JIMM: AllModels will always return the Type for models as IAAS #1930

Description

@SimoneDutto

Problem

https://github.com/canonical/jimm/blob/v3/internal/dbmodel/model.go#L140-L147

here we always return an empty model type.

However the Juju client if the model type is empty it will auto-fill IAAS.

See https://github.com/SimoneDutto/juju/blob/fix-new-client-client/api/controller/controller/controller.go#L47-L74

Solution

The solution might be to call the controller hosting the model to get the model type and merge the info we have in jimm's state with the one coming from the actual controller. Like we do for ListModels

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions