Skip to content

Commit

Permalink
Merge pull request #447 from NickLaMuro/fix_source_for_log_errors
Browse files Browse the repository at this point in the history
[MiqGenericMountSession] Fix .source_for_log

(cherry picked from commit bb0b1d4)

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1767895
  • Loading branch information
jrafanie authored and simaishi committed Nov 1, 2019
1 parent 258ba42 commit d09786d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/gems/pending/util/mount/miq_generic_mount_session.rb
Expand Up @@ -490,6 +490,12 @@ def settings_mount_point
end

def source_for_log
@input_writer ? "<STREAMED_FROM_CMD>" : @source_input.path
if @input_writer
"<STREAMED_FROM_CMD>"
elsif @source_input
@source_input.path
else
"<NOT_READY>"
end
end
end

0 comments on commit d09786d

Please sign in to comment.