Project global variables

This commit is contained in:
ziajka committed 2018-05-04 14:34:44 +02:00
1 parent 80958e8a6d
commit e267f8a8b8
9 files changed
+167 -8

No files matched your search

+4
View File
@@ -325,6 +325,10 @@ class DockerVM(BaseNode):
# Give the information to the container the list of volume path mounted
params["Env"].append("GNS3_VOLUMES={}".format(":".join(self._volumes)))
if self.project.variables:
for var in self.project.variables:
params["Env"].append("{}={}".format(var["name"], var.get('value', '')))
if self._environment:
for e in self._environment.strip().split("\n"):
e = e.strip()