Revision 8c68024a
Added by Daniel Lobato Garcia over 10 years ago
app/helpers/hostgroups_helper.rb | ||
---|---|---|
msg = [_("Are you sure?")]
|
||
if group.has_children?
|
||
msg << _("This group has nested groups!") + "\n"
|
||
msg << _("Deleting this group will unlink its nested groups and any associated puppet classes and / or parameters")
|
||
msg << _("Please delete all nested groups before deleting it.")
|
||
end
|
||
msg.join("\n")
|
||
end
|
Also available in: Unified diff
fixes #2231 - hostgroup deletion is restricted to hostgroups without children