Project

General

Profile

« Previous | Next » 

Revision c6e02bd3

Added by Joseph Magen over 10 years ago

fixes #3178 - add feature for compute profiles for hostgroups and hosts

View differences:

app/helpers/compute_resources_vms_helper.rb
def security_groups_for_vpc(security_groups, vpc_id)
security_groups.map{ |sg| [sg.name, sg.group_id] if sg.vpc_id == vpc_id}.compact
end
def show_vm_name?
controller_name != 'hosts' && controller_name != 'compute_attributes'
end
end

Also available in: Unified diff