1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-29 02:08:10 +00:00

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

Fix #433
This commit is contained in:
Julien Duponchelle 2016-02-19 17:01:28 +01:00
parent 7aedfc92fa
commit f4f9e6eba6
No known key found for this signature in database
GPG Key ID: F1E2485547D4595D
2 changed files with 14 additions and 1 deletions

View File

@ -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):

View File

@ -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 = {