Bug 143 Update based on review comments
authorPhilip Joseph <philip.joseph@riftio.com>
Fri, 13 Jan 2017 18:37:30 +0000 (00:07 +0530)
committerPhilip Joseph <philip.joseph@riftio.com>
Fri, 13 Jan 2017 18:41:03 +0000 (00:11 +0530)
Signed-off-by: Philip Joseph <philip.joseph@riftio.com>
layers/pingpong/reactive/pingpong.py

index 73b5fd9..21b31ea 100644 (file)
@@ -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():