Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

emc unity add controller disk port filesystem share qtree quota fouction #583

Merged
merged 17 commits into from
Jun 4, 2021

Conversation

tanjiangyu-ghca
Copy link
Contributor

What this PR does / why we need it:
emc unity add controller disk port filesystem share qtree quota fouctions

Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #

Special notes for your reviewer:

Release note:

@codecov
Copy link

codecov bot commented May 31, 2021

Codecov Report

Merging #583 (bc5fdd5) into master (1a77e3f) will decrease coverage by 0.09%.
The diff coverage is 67.24%.

@@            Coverage Diff             @@
##           master     #583      +/-   ##
==========================================
- Coverage   72.04%   71.94%   -0.10%     
==========================================
  Files         141      141              
  Lines       11618    11905     +287     
  Branches     1352     1392      +40     
==========================================
+ Hits         8370     8565     +195     
- Misses       2807     2874      +67     
- Partials      441      466      +25     
Impacted Files Coverage Δ
delfin/drivers/dell_emc/unity/rest_handler.py 50.00% <40.00%> (-4.96%) ⬇️
delfin/drivers/dell_emc/unity/unity.py 76.61% <73.61%> (-3.87%) ⬇️

tanjy and others added 2 commits May 31, 2021 17:44
pool_entries = controller_info.get('entries')
for pool in pool_entries:
content = pool.get('content', {})
health_value = content.get('health').get('value')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can generate exception if content is {}

Suggested change
health_value = content.get('health').get('value')
health_value = content.get('health', {}).get('value')

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

port_entries = ports.get('entries')
for port in port_entries:
content = port.get('content', {})
health_value = content.get('health').get('value')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

for ip_info in ip_interfaces.get('entries'):
ip_content = ip_info.get('content', {})
if content.get('id') == ip_content.get(
'ipPort').get('id'):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

port_entries = ports.get('entries')
for port in port_entries:
content = port.get('content', {})
health_value = content.get('health').get('value')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

disk_entries = disks.get('entries')
for disk in disk_entries:
content = disk.get('content', {})
health_value = content.get('health').get('value')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same issue in many places

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

delfin/drivers/dell_emc/unity/unity.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@wisererik wisererik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Collaborator

@ThisIsClark ThisIsClark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ThisIsClark ThisIsClark merged commit 83d7d34 into sodafoundation:master Jun 4, 2021
@tanjiangyu-ghca tanjiangyu-ghca deleted the unity_0531 branch June 8, 2021 00:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants