Commit 86320e60 authored by Seblu's avatar Seblu
Browse files

Fix eval_downstream not executed

parent 0cc6f62a
......@@ -121,9 +121,9 @@ class VersionController(object):
# get downstream version
v_downstream = self.get_version_downstream(name, value, mode)
# apply eval to downstream
e_compare = value.get("eval_downstream", None)
if e_compare is not None:
v_compare = eval(e_compare, {}, {"version": v_compare})
e_downstream = value.get("eval_downstream", None)
if e_downstream is not None:
v_downstream = eval(e_downstream, {}, {"version": v_downstream})
logging.debug("eval_downstream produce version: %s" % v_downstream)
# save downstream version
if self._cache["downstream"].get(name, {}).get("version", None) != v_downstream:
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