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
Create the auto partitioning module #1458
Create the auto partitioning module #1458
Conversation
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.
Looks good to me otherwise.
@property | ||
def passphrase(self): | ||
"""Default passphrase for all encrypted devices.""" | ||
return self._passphrase |
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 just feels weird to me. I know we need it now, but we shouldn't provide password back from module. I don't think we will really need that when this spoke is finished.
So could you please add TODO here to remove getter when module will be completed please?
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.
Yeah, something similar to the note in the user module could be used:
https://github.com/rhinstaller/anaconda/blob/master/pyanaconda/modules/user/user_interface.py#L66
One more reason to concentrate on moving the logic on these modules as soon as possible. :)
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.
Fixed in the DBus interface.
def SetEnabled(self, enabled: Bool): | ||
"""Is the auto partitioning enabled? | ||
|
||
:param enabled: a boolean 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.
I think this can go away (or tell about semantics, not type).
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.
Fixed.
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.
Looks good to me.
096413d
to
ba03bfc
Compare
Fixed some small issues. |
ba03bfc
to
6be9c0b
Compare
The auto partitioning module can handle the autopart kickstart command and provides API for its options. The module is static for now, but it will be dynamic in the future.
Add new tests for the auto partitioning module and the autopart command.
6be9c0b
to
86bfe33
Compare
he auto partitioning module can handle the autopart kickstart command
and provides API for its options. The module is static for now, but it
will be dynamic in the future.
Add new tests for the auto partitioning module and the autopart
command.