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

Use the return of findActiveDevicesOnActionDisks() properly #119

Conversation

mopsfelder
Copy link

The function findActiveDevicesOnActionDisks() does return a list of
device names, i.e. a list of strings, not a list of devices.

Without this fix, an AttributeError is throwned before the RuntimeError,
see:

File "/usr/lib/python2.7/site-packages/blivet/devicetree.py", line 354, in processActions
self._preProcessActions()
File "/usr/lib/python2.7/site-packages/blivet/devicetree.py", line 258, in _preProcessActions
",".join(p.name for p in problematic))
File "/usr/lib/python2.7/site-packages/blivet/devicetree.py", line 258, in
",".join(p.name for p in problematic))
AttributeError: 'str' object has no attribute 'name'

The function findActiveDevicesOnActionDisks() does return a list of
device names, i.e. a list of strings, not a list of devices.

Without this fix, an AttributeError is throwned before the RuntimeError,
see:

  File "/usr/lib/python2.7/site-packages/blivet/devicetree.py", line 354, in processActions
    self._preProcessActions()
  File "/usr/lib/python2.7/site-packages/blivet/devicetree.py", line 258, in _preProcessActions
    ",".join(p.name for p in problematic))
  File "/usr/lib/python2.7/site-packages/blivet/devicetree.py", line 258, in <genexpr>
    ",".join(p.name for p in problematic))
AttributeError: 'str' object has no attribute 'name'
@mulkieran
Copy link
Contributor

This is a dupe of #117. Closing it, but fix will go in.

@mulkieran mulkieran closed this May 20, 2015
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