Description of change
If client has $JUJU_MODEL and $JUJU_CONTROLLER environment variables specified and the controller values disagree and no further clarification was provided via command options [1], err out with descriptive message.
As a drive-by, this PR adds model level commands scenarios that were mentioned in lp#1786140 as internal tests.
[1] -c for controller level command and -m for model level command
Bug reference
https://bugs.launchpad.net/juju/+bug/1817745 https://bugs.launchpad.net/juju/+bug/1817744 https://bugs.launchpad.net/bugs/1786140
该提问来源于开源项目:juju/juju