Skip to content
Snippets Groups Projects
Commit 0efe584c authored by Philip Joseph's avatar Philip Joseph
Browse files

Bug 143 Update based on review comments


Signed-off-by: default avatarPhilip Joseph <philip.joseph@riftio.com>
parent 71d56bbe
No related branches found
No related tags found
No related merge requests found
......@@ -12,13 +12,11 @@ from charms.reactive import (
when,
)
import charms.sshproxy
import json
from subprocess import (
Popen,
CalledProcessError,
PIPE,
)
import time
cfg = config()
......@@ -50,6 +48,7 @@ def get_port():
port = 18889
return port
def run(cmd):
""" Run a command on the local machine. """
if isinstance(cmd, str):
......@@ -65,6 +64,7 @@ def run(cmd):
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():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment