Bug 143 Update based on review comments
Signed-off-by: Philip Joseph <philip.joseph@riftio.com>
diff --git a/layers/pingpong/reactive/pingpong.py b/layers/pingpong/reactive/pingpong.py
index 73b5fd9..21b31ea 100644
--- a/layers/pingpong/reactive/pingpong.py
+++ b/layers/pingpong/reactive/pingpong.py
@@ -12,13 +12,11 @@
when,
)
import charms.sshproxy
-import json
from subprocess import (
Popen,
CalledProcessError,
PIPE,
)
-import time
cfg = config()
@@ -50,6 +48,7 @@
port = 18889
return port
+
def run(cmd):
""" Run a command on the local machine. """
if isinstance(cmd, str):
@@ -65,6 +64,7 @@
output=stderr.decode("utf-8").strip())
return (stdout.decode('utf-8').strip(), stderr.decode('utf-8').strip())
+
@when('pingpong.configured')
@when('actions.start')
def start():