X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=layers%2Fpingpong%2Factions%2Fstart-traffic;fp=layers%2Fpingpong%2Factions%2Fstart-traffic;h=0000000000000000000000000000000000000000;hb=7873b95378885e2f226ff7c33abc96a6883c107b;hp=562ac4c72857dbb554b748c13899269363e0646d;hpb=24a06f011a425ebf9c3f2051238c7c5e73541477;p=osm%2Fdevops.git diff --git a/layers/pingpong/actions/start-traffic b/layers/pingpong/actions/start-traffic deleted file mode 100755 index 562ac4c7..00000000 --- a/layers/pingpong/actions/start-traffic +++ /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))