Merge "Fixed xml response for share snapshot."
This commit is contained in:
commit
cd6b68fa7e
@ -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):
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user