Skip to content
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

fixes #3664 - support deletion of installation media that's in use #1575

Closed
wants to merge 1 commit into from

Conversation

isratrade
Copy link
Member

No description provided.

@lzap
Copy link
Member

lzap commented Jul 9, 2014

LGTM testing.

@lzap
Copy link
Member

lzap commented Jul 9, 2014

WGFM

@lzap
Copy link
Member

lzap commented Jul 9, 2014

Once unit tests shows green, this is ready to be merged.

Nitpick: The error message shows "mediaXYZ is used by hostXYZ". The best experience would be to inform the user about that build mode. Less important.

@@ -4,11 +4,11 @@ class Medium < ActiveRecord::Base
include ValidateOsFamily
audited :allow_mass_assignment => true

before_destroy EnsureNotUsedBy.new(:hosts, :hostgroups)
before_destroy :ensure_hosts_not_in_build
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

re-factored here to create custom message that "media is used by host in build mode"

@isratrade
Copy link
Member Author

It's not clear to me which katello tests fail.
@jlsherrill, @ehelms, @thomasmckay, can you please have a look?

@domcleal
Copy link
Contributor

It timed out. [test]

@lzap
Copy link
Member

lzap commented Jul 15, 2014

Merged as 08d248f for Foreman 1.6. Thank you @isratrade !

@lzap lzap closed this Jul 15, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants