Example #1
0
 def get_all_by_host(cls, context, volume_id, host):
     attachments = db.volume_attachment_get_by_host(context, volume_id,
                                                    host)
     return base.obj_make_list(context, cls(context),
                               objects.VolumeAttachment, attachments)
Example #2
0
 def get_all_by_host(cls, context, volume_id, host):
     attachments = db.volume_attachment_get_by_host(context, volume_id, host)
     return base.obj_make_list(context, cls(context), objects.VolumeAttachment, attachments)