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
stop upload if Satellite setting is disconnected #312
stop upload if Satellite setting is disconnected #312
Conversation
| Open3.popen2e(hash_to_s(env), *preprocess_command(command)) do |_stdin, stdout_stderr, wait_thread| | ||
| progress_output.status = "Running in pid #{wait_thread.pid}" | ||
| progress_output_for(instance_label) do |progress_output| | ||
| Open3.popen2e(hash_to_s(env), *preprocess_command(command)) do |stdin, stdout_stderr, wait_thread| |
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.
| Open3.popen2e(hash_to_s(env), *preprocess_command(command)) do |stdin, stdout_stderr, wait_thread| | |
| Open3.popen2e(hash_to_s(env), *preprocess_command(command)) do |_stdin, stdout_stderr, wait_thread| |
we do not use stdin parameter.
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.
interesting why rubocop didn't catch it either
fee65e3
to
2a9f359
Compare
|
Thanks @ShimShtein, updated |
| label = UploadReportJob.output_label(organization_id) | ||
| if Setting[:content_disconnected] | ||
| progress_output_for(label) do |progress_output| | ||
| progress_output.write_line('Upload was stopped since this disconnected setting is enabled') |
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.
| progress_output.write_line('Upload was stopped since this disconnected setting is enabled') | |
| progress_output.write_line('Upload was stopped since disconnected mode setting is enabled for content on this instance.') |
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.
Fixed, thanks it sounds better 👍
2a9f359
to
24da4b0
Compare
24da4b0
to
dc1cee0
Compare
(cherry picked from commit 8aea2ce) Conflicts: lib/foreman_inventory_upload/async/shell_process.rb
(cherry picked from commit 8aea2ce) Conflicts: lib/foreman_inventory_upload/async/shell_process.rb
No description provided.