Skip to content

Commit

Permalink
edit file_system_metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
zhilong-xu committed Jan 17, 2023
1 parent b02ccab commit 597a42f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions delfin/drivers/dell_emc/power_store/rest_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -905,6 +905,9 @@ def get_file_system_metrics(self, storage_id, resource_metrics, start_time,
file_system_metrics_list = []
file_systems = self.rest_call(self.REST_FILE_SYSTEM_URL)
for file_system in file_systems:
fs_type = file_system.get('filesystem_type')
if 'Snapshot' == fs_type:
continue
file_system_id = file_system.get('id')
file_system_name = file_system.get('name')
if not file_system_id or not file_system_name:
Expand Down Expand Up @@ -1056,6 +1059,9 @@ def list_qtrees(self, storage_id):
nas_dict[nas_server_id] = nas_server_name
file_system_list = self.rest_call(self.REST_FILE_SYSTEM_URL)
for file_system in file_system_list:
fs_type = file_system.get('filesystem_type')
if 'Snapshot' == fs_type:
continue
file_system_id = file_system.get('id')
file_system_name = file_system.get('name')
nas_server_id = file_system.get('nas_server_id')
Expand Down

0 comments on commit 597a42f

Please sign in to comment.