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
Allow fuse type mounts without :/ in device string #41502
Conversation
We talked about this today and think that this PR will fix the bug but it has the potential to hang, timeout, and then lose information about any mounts that would have come afterwards. We think we have a strategy that you could implement to address that.
The ramifications of doing that will be:
|
quick draft of proposed solution #49398 |
@@ -454,7 +454,7 @@ def get_mount_facts(self): | |||
for fields in mtab_entries: | |||
device, mount, fstype, options = fields[0], fields[1], fields[2], fields[3] | |||
|
|||
if not device.startswith('/') and ':/' not in device: | |||
if not device.startswith('/') and ':/' not in device and not fstype.startswith('fuse'): |
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.
Rather than continuing to make this conditional more complex, I suggest making a filter function to encapsulate this logic. Then the list of mtab_entries
can be filtered before looping.
filtered_mtab_entries = (e for e in mtab_entries if _filter_mtab_entries(e))
Or the filter()
built-in could be used rather than a generator:
filtered_mtab_entries = filter(_filter_mtab_entries, mtab_entries)
@DBezemer Are you able to update this PR? needs_info |
@s-hertel I will not be able to work on this PR. |
related #24644 |
Closing due to extra requirements by #41502 (comment) to handle things like hangs and the original author is unable to continue with the PR. |
SUMMARY
Allow fuse type mounts in the gathered mount information when not matching traditional formatting with ":/"
Fixes #41494
ISSUE TYPE
COMPONENT NAME
setup
ANSIBLE VERSION