`juju remove-offer` confused by JUJU_CONTROLLER, JUJU_MODEL env variables

Bug #2038800 reported by Tom Haddon
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju

Bug Description

If you're trying to run `juju remove-offer` but you have JUJU_CONTROLLER and JUJU_MODEL environment variables set, juju will report:

ERROR current model for controller $YOUR-CONTROLLER not found

If you unset those environment variables and then manually `juju switch` to the appropriate model you can run the `juju remove-offer` command without problems.

This was on a juju 2.9.44 model with juju client version 2.9.42.

Tags: canonical-is
Tom Haddon (mthaddon)
tags: added: canonical-is
Ian Booth (wallyworld)
Changed in juju:
milestone: none → 2.9.46
importance: Undecided → High
status: New → Triaged
importance: High → Medium
importance: Medium → High
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.