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

Fix #33604 implementation when 'geom disk list' does not output rotat… #33767

Merged
merged 1 commit into from Jun 7, 2016
Merged

Conversation

amontalban
Copy link
Contributor

What does this PR do?

What issues does this PR fix or reference?

Previous Behavior

Remove this section if not relevant

New Behavior

Remove this section if not relevant

Tests written?

Yes/No

…ionrate. #33578

@@ -110,7 +110,7 @@ def parse_geom_attribs(device):
return

ret['disks'][name] = tmp
if tmp[_geomconsts.ROTATIONRATE] == 0:
if _geomconsts.ROTATIONRATE in tmp and tmp[_geomconsts.ROTATIONRATE] == 0:
Copy link
Contributor

Choose a reason for hiding this comment

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

Minor nit, I would simplify this to if tmp.get(_geomconsts.ROTATIONRATE) == 0:

@amontalban amontalban closed this Jun 5, 2016
@amontalban amontalban reopened this Jun 5, 2016
@kev009
Copy link
Contributor

kev009 commented Jun 5, 2016

Looks good to me

@cachedout cachedout merged commit 3e48b70 into saltstack:2016.3 Jun 7, 2016
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.

None yet

3 participants