1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-25 16:28:11 +00:00

Dissallow export when node are running and are not always running

Fix #677
This commit is contained in:
Julien Duponchelle 2016-09-15 18:48:14 +02:00
parent 37f972dea1
commit ee50790ab5
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

@ -635,7 +635,8 @@ class Project:
If a node is started or paused return True
"""
for node in self._nodes.values():
if node.status != "stopped":
# Some node type are always running we ignore them
if node.status != "stopped" and node.node_type in ("qemu", "docker", "dynamips", "vpcs", "vmware", "virtualbox", "iou"):
return True
return False