Add juju action to start petstore example

This is @chuckbutler's work, with some small fixes

`juju action do kubernetes-master/0 petstore` launches the example code
This commit is contained in:
Whit Morriss
2015-05-19 09:47:08 -05:00
parent 10339d72b6
commit 5d19597ffa
7 changed files with 88 additions and 2 deletions

View File

@@ -141,6 +141,11 @@ def relation_changed():
# Send api endpoint to minions
notify_minions()
@hooks.hook('network-relation-changed')
def network_relation_changed():
relation_id = hookenv.relation_id()
hookenv.relation_set(relation_id, ignore_errors=True)
def notify_minions():
print("Notify minions.")