-
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
Batch disconnect method for ContainerImage #15698
Batch disconnect method for ContainerImage #15698
Conversation
Batch disconnect method for ContainerImage
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.
app/models/container_image.rb
Outdated
@@ -97,5 +97,10 @@ def disconnect_inv | |||
save | |||
end | |||
|
|||
def self.disconnect_inv(ids) | |||
_log.info "Disconnecting ContainerImages ids [#{ids}]" |
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.
Can you more closely match the log message from the normal disconnect_inv ?
Maybe "Disconnecting Images [#{ids}] from EMS [#{ext_management_system.name}] id [#{ext_management_system.id}]"
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.
right, I don't have the EMS object here. Not sure if I should pass it for the purpose of logging? the EMS can be found in the log by looking at the process id though.
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 right, just "Disconnecting Images...
then
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.
done
Reword the log message based on review
Checked commits Ladas/manageiq@2c10dbf~...272744c with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 app/models/container_image.rb
|
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.
👍
Fun fact: the singular |
Batch disconnect method for ContainerImage.