diff options
author | 2019-06-24 14:53:36 +0000 | |
---|---|---|
committer | 2019-06-24 14:53:36 +0000 | |
commit | eec1111aacc4d49e52acf7fa7fb7cf7640e42800 (patch) | |
tree | cb24253330154d12aef8a26a42b2cf570e258352 | |
parent | f8edf16b28883647e119105429373cef8d726a82 (diff) | |
parent | 016cda4cbd023bb77c9838ca3a30ceac9c5308d2 (diff) |
Merge "Remove duplicate 'flavorId' in directives"
-rw-r--r-- | conductor/conductor/data/service.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/conductor/conductor/data/service.py b/conductor/conductor/data/service.py index 09756d2..0b66b22 100644 --- a/conductor/conductor/data/service.py +++ b/conductor/conductor/data/service.py @@ -559,7 +559,8 @@ class DataEndpoint(object): for ele in directives: if "flavor_directives" in ele.get("type"): flag = True - ele.get("attributes").append(flavor_id_attributes) + if len(ele.get("attributes")) <= 1: + ele.get("attributes").append(flavor_id_attributes) break else: flag = False |