Automatically detect OSM_HOSTNAME
Bug #1859995 reported by
David
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[
10.152.183.241
If the command gives an error, then print an error saying that the OSM_HOSTNAME variable is required.
Changed in osmclient: | |
importance: | Undecided → Low |
To post a comment you must log in.