-
Notifications
You must be signed in to change notification settings - Fork 898
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
Collect log follows symlink recursively to the origin file #15420
Conversation
@yrudman tested both symlink to dir, one and two levels of symlink, failed to pack one of the files won't make whole collecting zip fail. Ready for review. Note in my vm for testing, even the GUID file is not a symlink originally. So I move it to other place, and tested by symlink to symlink to it (two levels) or symlink to it (one level). |
80d5423
to
4127af2
Compare
spec/lib/vmdb/util_spec.rb
Outdated
|
||
it "symlink file" do | ||
origin_file = Tempfile.new 'origin' | ||
origin_file.puts('abc') |
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.
do you need it ?
👍 looks good Very minor, could you rebase and squash to 2 commits |
@miq-bot remove-label wip |
Checked commits ailisp/manageiq@2063a76~...43f9e83 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 |
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, nice job!! 👍
@gtanzillo can this be |
@miq-bot add-label fine/yes |
Collect log follows symlink recursively to the origin file (cherry picked from commit 81d5567) https://bugzilla.redhat.com/show_bug.cgi?id=1478510
Fine backport details:
|
Collect log follows symlink recursively to the origin file (cherry picked from commit 81d5567) https://bugzilla.redhat.com/show_bug.cgi?id=1478510
ISSUE: When collecting log using diagnostic panel of ManageIQ Configuration, when encounter symlinks, it only collect symlink, not the actual file.
BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1450134
\cc @yrudman @gtanzillo
@miq-bot add-label wip, bug