1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | diff --git a/reactive/ghost.py b/reactive/ghost.py
index 132d393..d98d652 100644
--- a/reactive/ghost.py
+++ b/reactive/ghost.py
@@ -2,6 +2,7 @@ import os
from charms.reactive import (
hook,
when,
+ only_once,
is_state
)
@@ -46,7 +47,8 @@ def config_changed():
# REACTORS --------------------------------------------------------------------
-@when('nginx.available', 'nodejs.installed')
+@when('nginx.available', 'nodejs.available')
+@only_once
def install():
""" Performs application installation
|