Skip to content

Instantly share code, notes, and snippets.

@buggtb
Created February 25, 2016 21:53
Show Gist options
  • Select an option

  • Save buggtb/ff52067809a00101d4f1 to your computer and use it in GitHub Desktop.

Select an option

Save buggtb/ff52067809a00101d4f1 to your computer and use it in GitHub Desktop.
host = juju.unit_get("private-address")
port=8181
juju.relation_set({
'hostname':host, 'port':port})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment