Make the API address easily accessible by charms

Bug #1161443 reported by Francesco Banconi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
juju-core
Fix Released
High
Francesco Banconi
juju-gui
Fix Released
High
Francesco Banconi

Bug Description

We want our charm to know the address of the API server. We're currently doing it parsing the agent.conf file inside the machine-X directory. It might be better to include that info in the uniter agent.conf file too.

Revision history for this message
Roger Peppe (rogpeppe) wrote :

Alternatively we could make the API server address available to charms
in an environment variable.

Revision history for this message
William Reade (fwereade) wrote :

I'm +1 on roger's solution -- charms really shouldn't be making assumptions about where juju stores stuff.

Changed in juju-gui:
assignee: nobody → Francesco Banconi (frankban)
Changed in juju-core:
status: New → In Progress
assignee: nobody → Francesco Banconi (frankban)
Changed in juju-gui:
status: Triaged → In Progress
Changed in juju-gui:
status: In Progress → Fix Committed
Changed in juju-core:
status: In Progress → Fix Committed
Tim Penhey (thumper)
Changed in juju-core:
milestone: none → 1.11.1
importance: Undecided → High
Changed in juju-core:
status: Fix Committed → Fix Released
Changed in juju-gui:
status: Fix Committed → Fix Released
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.