diff --git a/delfin/drivers/hpe/hpe_3par/component_handler.py b/delfin/drivers/hpe/hpe_3par/component_handler.py index 54f7fa38b..11da8568e 100644 --- a/delfin/drivers/hpe/hpe_3par/component_handler.py +++ b/delfin/drivers/hpe/hpe_3par/component_handler.py @@ -627,14 +627,14 @@ def list_masking_views(self, storage_id): host_name = view.get('hostname') if vv_name and host_name: port = view.get('port', '').replace('-', '') - id = view.get('lun') + lun_id = view.get('lun') wwn = view.get('host_wwn/iscsi_name', '').replace('-', '') if port: - id = '%s_%s' % (view.get('lun'), port) + lun_id = '%s_%s' % (view.get('lun'), port) if wwn: - id = '%s_%s' % (id, wwn) + lun_id = '%s_%s' % (lun_id, wwn) view_model = { - 'native_masking_view_id': id, + 'native_masking_view_id': lun_id, "name": view.get('lun'), "storage_id": storage_id }