Make sure list_nodes_full contains a name attribute

This commit is contained in:
Joseph Hall 2015-09-21 08:21:52 -06:00
parent c9255f2bbd
commit fcd467d01b

View File

@ -3076,6 +3076,7 @@ def _extract_instance_info(instances):
for item in instance['instancesSet']['item']:
name = _extract_name_tag(item)
ret[name] = item
ret[name]['name'] = name
ret[name].update(
dict(
id=item['instanceId'],
@ -3090,6 +3091,7 @@ def _extract_instance_info(instances):
item = instance['instancesSet']['item']
name = _extract_name_tag(item)
ret[name] = item
ret[name]['name'] = name
ret[name].update(
dict(
id=item['instanceId'],