Fix a crash when docker start command is None

Ref #550
This commit is contained in:
Julien Duponchelle committed 2016-05-31 16:32:12 +02:00
1 parent 009ffcb4ef
commit 6f7b06e66f
1 file changed
+3 -2
+3 -2
View File
@@ -129,8 +129,9 @@ class DockerVM(BaseVM):
@start_command.setter
def start_command(self, command):
command = command.strip()
if len(command) == 0:
if command:
command = command.strip()
if command is None or len(command) == 0:
self._start_command = None
else:
self._start_command = command