Merge "Fixed xml response for share snapshot."

This commit is contained in:
Jenkins 2013-10-01 14:33:54 +00:00 committed by Gerrit Code Review
commit cd6b68fa7e
2 changed files with 10 additions and 18 deletions

View File

@ -33,13 +33,11 @@ LOG = logging.getLogger(__name__)
def make_snapshot(elem):
elem.set('id')
elem.set('size')
elem.set('status')
elem.set('name')
elem.set('description')
elem.set('share_proto')
elem.set('export_location')
attrs = ['id', 'size', 'status', 'name', 'description', 'share_proto',
'export_location', 'links', 'share_id', 'created_at',
'share_size']
for attr in attrs:
elem.set(attr)
class SnapshotTemplate(xmlutil.TemplateBuilder):

View File

@ -32,17 +32,11 @@ LOG = logging.getLogger(__name__)
def make_share(elem):
elem.set('id')
elem.set('size')
elem.set('availability_zone')
elem.set('status')
elem.set('name')
elem.set('description')
elem.set('share_proto')
elem.set('export_location')
elem.set('links')
elem.set('snapshot_id')
elem.set('created_at')
attrs = ['id', 'size', 'availability_zone', 'status', 'name',
'description', 'share_proto', 'export_location', 'links',
'snapshot_id', 'created_at']
for attr in attrs:
elem.set(attr)
def remove_invalid_options(context, search_options, allowed_search_options):