Fixes metadata for ec2_api to specify owner_id so that it filters properly.

This commit is contained in:
Vishvananda Ishaya 2011-03-30 15:02:55 +00:00 committed by Tarmac
commit 0e17f86bc3

View File

@ -902,7 +902,7 @@ class ImageCommands(object):
'disk_format': disk_format, 'disk_format': disk_format,
'container_format': container_format, 'container_format': container_format,
'properties': {'image_state': 'available', 'properties': {'image_state': 'available',
'owner': owner, 'owner_id': owner,
'type': image_type, 'type': image_type,
'architecture': architecture, 'architecture': architecture,
'image_location': 'local', 'image_location': 'local',
@ -980,7 +980,7 @@ class ImageCommands(object):
'is_public': True, 'is_public': True,
'name': old['imageId'], 'name': old['imageId'],
'properties': {'image_state': old['imageState'], 'properties': {'image_state': old['imageState'],
'owner': old['imageOwnerId'], 'owner_id': old['imageOwnerId'],
'architecture': old['architecture'], 'architecture': old['architecture'],
'type': old['type'], 'type': old['type'],
'image_location': old['imageLocation'], 'image_location': old['imageLocation'],