Skip to content

Commit

Permalink
fix the issue which when quota is None report error
Browse files Browse the repository at this point in the history
  • Loading branch information
tanjiangyu-ghca committed Jun 8, 2021
1 parent 73fe3a1 commit 0543d8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions delfin/drivers/dell_emc/unity/unity.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ def get_tree_quotas(self):
quota_configs = self.rest_handler.get_quota_configs()
qts = self.rest_handler.get_all_qtrees()
if qts is None:
return
return quotas_list
qt_entries = qts.get('entries')
conf_entries = quota_configs.get('entries')
for quota in qt_entries:
Expand Down Expand Up @@ -508,7 +508,7 @@ def get_user_quotas(self):
quota_configs = self.rest_handler.get_quota_configs()
user_qts = self.rest_handler.get_all_userquotas()
if user_qts is None:
return
return quotas_list
conf_entries = quota_configs.get('entries')
user_entries = user_qts.get('entries')
for user_quota in user_entries:
Expand Down

0 comments on commit 0543d8c

Please sign in to comment.