Imported repo juju-charms
[osm/devops.git] / layers / pingpong / actions / start-traffic
diff --git a/layers/pingpong/actions/start-traffic b/layers/pingpong/actions/start-traffic
deleted file mode 100755 (executable)
index 562ac4c..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/usr/bin/env python3
-import sys
-sys.path.append('lib')
-
-from charms.reactive import main
-from charms.reactive import set_state
-from charmhelpers.core.hookenv import action_fail
-
-"""
-`set_state` only works here because it's flushed to disk inside the `main()`
-loop. remove_state will need to be called inside the action method.
-"""
-set_state('actions.start-traffic')
-
-try:
-    main()
-except Exception as e:
-    action_fail(repr(e))