summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShankaranarayanan Puzhavakath Narayanan <snarayanan@research.att.com>2019-06-24 14:53:36 +0000
committerGerrit Code Review <gerrit@onap.org>2019-06-24 14:53:36 +0000
commiteec1111aacc4d49e52acf7fa7fb7cf7640e42800 (patch)
treecb24253330154d12aef8a26a42b2cf570e258352
parentf8edf16b28883647e119105429373cef8d726a82 (diff)
parent016cda4cbd023bb77c9838ca3a30ceac9c5308d2 (diff)
Merge "Remove duplicate 'flavorId' in directives"
-rw-r--r--conductor/conductor/data/service.py3
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