-
Notifications
You must be signed in to change notification settings - Fork 355
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
Conversation
emc unity add controller disk port filesystem share qtree quota fouction
Codecov Report
@@ 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
|
emc unity add controller disk port filesystem share qtree quota fouction
pool_entries = controller_info.get('entries') | ||
for pool in pool_entries: | ||
content = pool.get('content', {}) | ||
health_value = content.get('health').get('value') |
There was a problem hiding this comment.
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 {}
health_value = content.get('health').get('value') | |
health_value = content.get('health', {}).get('value') |
There was a problem hiding this comment.
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') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above
There was a problem hiding this comment.
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'): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above
There was a problem hiding this comment.
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') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above
There was a problem hiding this comment.
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') |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
emc unity add controller disk port filesystem share qtree quota fouction
delete codecoverage more than 70%
use resourse's own status
change code style
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
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: