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

Set _supported_filesystems in BlivetGUIAnaconda init #100

Merged

Conversation

AdamWill
Copy link
Contributor

BlivetGUIAnaconda subclasses BlivetGUI, but doesn't call the
parent class's init. c4b6e17 added supported_filesystems
to BlivetGUI and set _supported_filesystems for caching during
init, but this was not also added to BlivetGUIAnaconda, so
when anything tries to use the supported_filesystems property
of a BlivetGUIAnaconda instance, it will crash. This is causing
all attempts to use blivet-gui in anaconda to crash since 2.1.8
landed in Rawhide.

Signed-off-by: Adam Williamson awilliam@redhat.com

BlivetGUIAnaconda subclasses BlivetGUI, but doesn't call the
parent class's __init__. c4b6e17 added supported_filesystems
to BlivetGUI and set _supported_filesystems for caching during
__init__, but this was not also added to BlivetGUIAnaconda, so
when anything tries to use the supported_filesystems property
of a BlivetGUIAnaconda instance, it will crash. This is causing
all attempts to use blivet-gui in anaconda to crash since 2.1.8
landed in Rawhide.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
@AdamWill
Copy link
Contributor Author

Note: haven't tested this as it's slightly difficult to do, but I think this should be a sufficient fix, from just looking at the code.

@vojtechtrefny
Copy link
Member

Jenkins, ok to test.

@vojtechtrefny vojtechtrefny merged commit e69d73b into storaged-project:master Jan 18, 2018
halstead pushed a commit to openembedded/meta-openembedded that referenced this pull request Mar 25, 2019
Fix the following error when attempting to use blivet-gui in anaconda:
Traceback (most recent call first):
  File "/usr/lib64/python3.5/site-packages/blivetgui/blivetgui.py", line 153, in supported_filesystems
    if self._supported_filesystems:
  File "/usr/lib64/python3.5/site-packages/blivetgui/blivetgui.py", line 456, in add_device
    supported_filesystems=self.supported_filesystems,
AttributeError: 'BlivetGUIAnaconda' object has no attribute '_supported_filesystems'

Reference:
storaged-project/blivet-gui#100

Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
jpuhlman pushed a commit to MontaVista-OpenSourceTechnology/meta-openembedded that referenced this pull request Apr 17, 2019
Source: meta-openembedded
MR: '00000'
Type: Integration
Disposition: Merged from meta-openembedded
ChangeID: f8af6c4
Description:

Fix the following error when attempting to use blivet-gui in anaconda:
Traceback (most recent call first):
  File "/usr/lib64/python3.5/site-packages/blivetgui/blivetgui.py", line 153, in supported_filesystems
    if self._supported_filesystems:
  File "/usr/lib64/python3.5/site-packages/blivetgui/blivetgui.py", line 456, in add_device
    supported_filesystems=self.supported_filesystems,
AttributeError: 'BlivetGUIAnaconda' object has no attribute '_supported_filesystems'

Reference:
storaged-project/blivet-gui#100

Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Jeremy Puhlman <jpuhlman@mvista.com>
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

2 participants