Skip to content

Instantly share code, notes, and snippets.

@marcoceppi
Last active April 19, 2016 03:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcoceppi/fb911c63eac6a1db5c649a2f96439074 to your computer and use it in GitHub Desktop.
Save marcoceppi/fb911c63eac6a1db5c649a2f96439074 to your computer and use it in GitHub Desktop.
requires:
- 'interface:juju-info'
requires:
you-knows-it:
interface: juju-info
from charms.reactive import when, when_not
@when('you-knows-it.available')
def do_stuff(rel):
print(rel.private_address())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment