Comment 6 for bug 1785223

Revision history for this message
Anastasia (anastasia-macmood) wrote :

@Ian Booth (wallyworld),

I think you are 100% right. Model resolution at offer command is not correct.
Instead of
```
c.NewControllerAPIRoot()
```

at https://github.com/juju/juju/blob/develop/cmd/juju/crossmodel/list.go#L87

we should be calling

```
(c *ModelCommandBase) NewAPIRoot()
```

as this will get both the correct model and the correct controller.