summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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