Skip to content

Commit

Permalink
Change heat stack-update code to conform to
Browse files Browse the repository at this point in the history
the vnc_api. When attr is not specified, library
expects a dict instead of just fq_name

Change-Id: I1aa7b22b08cda4310cd3f4e85fd33dbf9f1cb013
Closes-bug: #1599596
  • Loading branch information
Praneet Bachheti committed Jul 8, 2016
1 parent aeae89b commit f2d180f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ifmap_frontend.py
Original file line number Diff line number Diff line change
Expand Up @@ -1650,7 +1650,7 @@ def _ref_modify_handling(self):
tabs=8
write(self.gen_file, "%sif self.%s in prop_diff:" %(" "*tabs, ref_name.upper()))
tabs = tabs+4
write(self.gen_file, "%sfor index_%s in range(len(%s or [])):" %(tabs*" ",
write(self.gen_file, "%sfor index_%s in range(len(prop_diff.get(self.%s) or [])):" %(tabs*" ",
len(val['prop_get_list']), ref_name.upper()))
tabs = tabs+4
write(self.gen_file, "%stry:" %(" "*tabs))
Expand All @@ -1669,7 +1669,10 @@ def _ref_modify_handling(self):
tabs = tabs-4
write(self.gen_file, "%s)" %(" "*tabs))
tabs = tabs-4
write(self.gen_file, "%sref_obj_list.append(ref_obj.fq_name)" %(" "*tabs))
if ref_attr_data:
write(self.gen_file, "%sref_obj_list.append(ref_obj.fq_name)" %(" "*tabs))
else:
write(self.gen_file, "%sref_obj_list.append({'to':ref_obj.fq_name})" %(" "*tabs))
write(self.gen_file, "")
tabs = tabs-4

Expand Down

0 comments on commit f2d180f

Please sign in to comment.