Revision 91dcf7dc
Added by Ohad Levy about 14 years ago
- ID 91dcf7dc3df7914f165e5c82ee1bf340429b3ba6
app/controllers/hosts_controller.rb | ||
---|---|---|
# simple validations
|
||
if (id=params["hostgroup"]["id"]).empty?
|
||
flash[:foreman_error] = 'No Hostgroup selected!'
|
||
redirect_to(select_hostgroup_hosts_path) and return
|
||
redirect_to(select_multiple_hostgroup_hosts) and return
|
||
end
|
||
if (hg = Hostgroup.find id).nil?
|
||
flash[:foreman_error] = 'Empty Hostgroup selected!'
|
||
redirect_to(select_hostgroup_hosts_path) and return
|
||
redirect_to(select_multiple_hostgroup_hosts) and return
|
||
end
|
||
|
||
#update the hosts
|
Also available in: Unified diff
updated incorrect url path, refs #179