commit | 719684856a10df2f6f8f4708a7e4f46d9a9d7c7e | [log] [tgz] |
---|---|---|
author | Taras Khlivnyak <tkhlivnyak@mirantis.com> | Wed Dec 08 11:07:01 2021 +0200 |
committer | Taras Khlivnyak <tkhlivnyak@mirantis.com> | Wed Dec 08 11:18:33 2021 +0200 |
tree | adad0929ff0620a293c9b77346489b4fc1024eed | |
parent | 7e4abf3cd27ddf3d774b0fc16812b7fec9cd1131 [diff] |
Avoid duplicates in case of merge two lists related-bug: MOSSUST-112 Change-Id: Ic3f308c9d9c38d49d81d0cf0ef39df453b024149
diff --git a/reclass_tools/helpers.py b/reclass_tools/helpers.py index 5c3ea92..abbfb47 100644 --- a/reclass_tools/helpers.py +++ b/reclass_tools/helpers.py
@@ -189,7 +189,7 @@ # Add two lists if isinstance(obj_1, list) and isinstance(obj_2, list): - return obj_1 + obj_2 + return obj_1 + list(set(obj_2) - set(obj_1)) # Overwrite a value with new one return obj_2