-
Notifications
You must be signed in to change notification settings - Fork 153
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
Modify boot option handling on Linux systems #182
Conversation
@quidame I have fixed it according to your advice. I would appreciate it if you could review it. Thanks! |
plugins/modules/mount.py
Outdated
if 'noauto' in opts: | ||
args['warnings'].append("Ignore the 'boot' due to 'opts' contains 'noauto'.") | ||
elif not module.params['boot']: | ||
args['boot'] = 'no' |
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.
what is the point to set it as a string rather than a boolean ?
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.
Hi! thank you for the review. That was to match the return value type with Solaris. For Solaris, return value includes boot
but it is string
.
I have fixed it to use boolean but eventually, I think that we also need to change the type of return value for Solaris. But I think it's probably better to do it in another PR.
@quidame I would appreciate your advice on this :)
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.
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.
#185 has been merged to main branch.
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.
Could you please rebase this branch? I guess the conflicts are because of #185 you've just mentioned.
the changelog-fragment check seems to be fixed and should pass now |
Closing and re-opening for CI trigger. |
SUMMARY
Modify boot option handling on Linux systems:
noauto
option ifboot
isno
on Linux systemopts
containsnoauto
ordefaults
, theboot
option will be ignorednoauto
is not specified, the default behavior will beauto
, soboot: yes
does not explicitly setauto
.ISSUE TYPE
COMPONENT NAME
ADDITIONAL INFORMATION
None