Commit 0feab244 authored by Daniele Venzano's avatar Daniele Venzano
Browse files

Do not pass None values as environment options

parent 018a3f87
......@@ -58,3 +58,4 @@ docs/_build/
# PyBuilder
......@@ -83,7 +83,8 @@ class ContainerOptions:
self.memory_limit = '2g'
def add_env_variable(self, name, value):
self.env[name] = value
if value is not None:
self.env[name] = value
def get_environment(self):
return self.env
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment