Fix Docker has returned an error: 500 b'No command specified'

Fix #433
pull/448/head
Julien Duponchelle 8 years ago
parent 7aedfc92fa
commit f4f9e6eba6
No known key found for this signature in database
GPG Key ID: F1E2485547D4595D

@ -95,7 +95,11 @@ class DockerVM(BaseVM):
@start_command.setter
def start_command(self, command):
self._start_command = command
command = command.strip()
if len(command) == 0:
self._start_command = None
else:
self._start_command = command
@property
def environment(self):

@ -60,6 +60,15 @@ def test_json(vm, project):
}
def test_start_command(vm):
vm.start_command = "hello"
assert vm.start_command == "hello"
vm.start_command = " "
assert vm.start_command is None
def test_create(loop, project, manager):
response = {

Loading…
Cancel
Save