Skip to content

Commit

Permalink
Merge branch 'hotfix'
Browse files Browse the repository at this point in the history
  • Loading branch information
travula committed Apr 30, 2015
2 parents 31205ef + 3922a88 commit 31b2443
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/VMManager/LabActionScript.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

class EmptyLabActionError(Exception):
pass

class LabActionScript:
"""Runs an action which is usually a bash or Python script."""
ACTION_EMPTY = 0x1
Expand All @@ -30,7 +30,7 @@ class LabActionScript:
BACKUP_SCRIPT_KEY = "backup"
STATS_SCRIPT_KEY = "stats"
PUBLISH_SCRIPT_KEY = "publish"

def __init__(self, cmd):
self._cmd = cmd.strip()
self._state = LabActionScript.ACTION_EMPTY
Expand All @@ -49,10 +49,10 @@ def run(self):
self._state = LabActionScript.ACTION_COMPLETED
except Exception, e:
self._state = LabActionScript.ACTION_UNSUCCESSFUL
logger.error("LabActionScript::run() ose - " + str(ose))
logger.error("LabActionScript::run() exception is: %s" % str(e))

return self

def run_async(self):
""" TODO: PROVIDE A DECENT IMPLEMENTATION!!"""
"""Runs a command asynchronously."""
Expand Down Expand Up @@ -84,7 +84,7 @@ def testEmptyAction():
except EmptyLabActionError:
pass
assert(action.empty() == True)

def testGitCloneAction():
action = LabActionScript("git clone https://bitbucket.org/deviprasad/itworkshop2-spring-2014.git")
action.run()
Expand Down

0 comments on commit 31b2443

Please sign in to comment.