Permalink
Browse files

small esthetic fix in virtualbox MM

  • Loading branch information...
1 parent 1679c25 commit 5d8f9ffa9d306b30f22a514b4b3356c62aafa2d3 @rep rep committed Oct 9, 2012
Showing with 3 additions and 4 deletions.
  1. +3 −4 modules/machinemanagers/virtualbox.py
@@ -78,8 +78,7 @@ def stop(self, label):
"""
log.debug("Stopping vm %s" % label)
- status = self._status(label)
- if status == self.POWEROFF or status == self.ABORTED:
+ if self._status(label) in [self.POWEROFF, self.ABORTED]:
log.debug("Trying to stop an already stopped vm %s" % label)
else:
try:
@@ -165,8 +164,8 @@ def _status(self, label):
def _wait_status(self, label, state):
"""Waits for a vm status.
- @param label: virtual machine name, accepts more than one states in a list.
- @param state: virtual machine status.
+ @param label: virtual machine name.
+ @param state: virtual machine status, accepts more than one states in a list.
@raise CuckooMachineError: if default waiting timeout expire.
"""
# This block was originally suggested by Loic Jaquemet.

0 comments on commit 5d8f9ff

Please sign in to comment.