Merge pull request 'fix: enc outputs *id001 in class/environment' (#24) from neoloc/enc_script_id001 into master
Reviewed-on: #24
This commit is contained in:
commit
e80706d3db
4
enc.py
4
enc.py
@ -34,11 +34,11 @@ def main():
|
|||||||
|
|
||||||
# Add 'enc_role' parameter with classes data
|
# Add 'enc_role' parameter with classes data
|
||||||
if "classes" in data:
|
if "classes" in data:
|
||||||
data["parameters"]["enc_role"] = data["classes"]
|
data["parameters"]["enc_role"] = data["classes"][:]
|
||||||
|
|
||||||
# Copy the environment to the parameters, if it exists
|
# Copy the environment to the parameters, if it exists
|
||||||
if data.get("environment"):
|
if data.get("environment"):
|
||||||
data["parameters"]["enc_env"] = data["environment"]
|
data["parameters"]["enc_env"] = data["environment"][:]
|
||||||
|
|
||||||
# If the environment is 'testing', remove it
|
# If the environment is 'testing', remove it
|
||||||
if data.get("environment") == "testing":
|
if data.get("environment") == "testing":
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user