grim/local-pipelines

e700bdbea6a4
Parents f2d1342040e3
Children bcf5bb4bd83f
pipeline: add new property public_env

This is currently unused but will return all the env vars that were
passed in as VAR=FOO (as opposed to ones that were just VAR).
--- a/pipelines/pipeline.py Wed Jul 27 11:16:47 2016 -0700
+++ b/pipelines/pipeline.py Wed Jul 27 17:05:22 2016 -0700
@@ -45,6 +45,11 @@
return [Step.from_dict(s["step"]) for s in ret]
+ @property
+ def public_env(self):
+ # dict of env vars that are not none
+ return {k: v for k, v in self._env.iteritems() if v is not None}
+
def _determine_image(self, step):
return step.image or self.config.get("image")