Revision acfbc458
Added by Marek Hulán about 10 years ago
app/models/compute_resources/foreman/model/ec2.rb | ||
---|---|---|
end
|
||
|
||
def associated_host(vm)
|
||
Host.my_hosts.where(:ip => [vm.public_ip_address, vm.private_ip_address]).first
|
||
Host.authorized(:view_hosts, Host).where(:ip => [vm.public_ip_address, vm.private_ip_address]).first
|
||
end
|
||
|
||
private
|
Also available in: Unified diff
fixes #812 - new permissions model, user group role and nest support, role filters for better granularity
Contributions from: