Merge branch '1.5' into 2.0

This commit is contained in:
Julien Duponchelle committed 2016-05-24 10:13:53 +02:00
commit da6cb13338
10 files changed
+69 -32

No files matched your search

+2 -2
View File
@@ -602,8 +602,8 @@ class Dynamips(BaseManager):
elif startup_config_content:
startup_config_path = self._create_config(vm, default_startup_config_path, startup_config_content)
yield from vm.set_configs(startup_config_path)
# An empty startup config crash dynamips
else:
elif os.path.isfile(default_startup_config_path) and os.path.getsize(default_startup_config_path) == 0:
# An empty startup-config may crash Dynamips
startup_config_path = self._create_config(vm, default_startup_config_path, "!\n")
yield from vm.set_configs(startup_config_path)