-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Port #49480 to master #56830
Port #49480 to master #56830
Conversation
d1593d5
to
539a019
Compare
Salt-based supportconfig. Re-implementation of Support Config Tool in Salt.
3515ed0
to
1b66a9a
Compare
os.access documentation notes it could be false-positive in some cases like network filesystems. So we have to catch the permission error anyway that makes using of os.access check redundant.
salt/cli/support/collector.py
Outdated
self.out.error(ret) | ||
except Exception as ex: # pylint: disable=broad-except | ||
ret = "Unhandled exception occurred: {}".format(ex) | ||
log.debug(ex, exc_info=True) |
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.
ret? And not ex
?
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.
The purpose is to collect all events so it just puts the error as well.
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.
Sure, but the above ret
is not used. I guess it was supposed to be on the log call, of not, nuke it.
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.
Ah, I got you. Sorry.
Superseded by #57054 |
Port #49480 to master
Salt-based supportconfig. Re-implementation of Support Config Tool in
Salt.