Fix dynamips node creation error

This commit is contained in:
Julien Duponchelle committed 2017-05-16 10:49:45 +02:00
1 parent 5c5caf8418
commit e9fef928b0
2 files changed
+20 -2

No files matched your search

+2 -1
View File
@@ -98,7 +98,8 @@ class Node:
log.critical("Can't set attribute %s", prop)
raise e
else:
self.properties[prop] = kwargs[prop]
if prop not in self.CONTROLLER_ONLY_PROPERTIES and kwargs[prop] is not None and kwargs[prop] != "":
self.properties[prop] = kwargs[prop]
if self._symbol is None:
self.symbol = ":/symbols/computer.svg"