Automatically detect OSM_HOSTNAME

Bug #1859995 reported by David
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
osmclient
New
Low
Unassigned

Bug Description

I don't know how complicated is this:

When executing the osmclient.osm command, check if the OSM_HOSTNAME exists. If it exists, then continue. If not, check if the following command gives an IP (means that Charmed OSM is installed). <-- Autoexport the OSM_HOSTNAME to use that IP.

$ juju status nbi-k8s --format json | jq -r '.applications["nbi-k8s"].address'
10.152.183.241

If the command gives an error, then print an error saying that the OSM_HOSTNAME variable is required.

David (davigar15)
Changed in osmclient:
importance: Undecided → Low
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.