mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
feature #817: Fixes host uniqueness
This commit is contained in:
parent
0793eabd51
commit
9a493620b1
@ -69,8 +69,6 @@ module OZones
|
||||
#When more rules are added the class constant HOST_ACL_FIRST_ID
|
||||
#must be modified
|
||||
###############################################################
|
||||
|
||||
puts get_host_acls_str(group_id)
|
||||
|
||||
rule_str.concat(self.get_host_acls_str(group_id))
|
||||
end
|
||||
@ -84,7 +82,6 @@ module OZones
|
||||
|
||||
# Grant permissions to use the vdc hosts
|
||||
host_list.split(',').each{|hostid|
|
||||
puts hostid
|
||||
rule_str << "@#{group_id} HOST/##{hostid} USE"
|
||||
}
|
||||
|
||||
|
@ -372,11 +372,11 @@ class OzonesServer
|
||||
all_hosts = ""
|
||||
zone.vdcs.all.each{|vdc|
|
||||
if vdc.hosts != nil and !vdc.hosts.empty? and vdc.id != vdc_id
|
||||
all_hosts << vdc.hosts
|
||||
all_hosts << ',' << vdc.hosts
|
||||
end
|
||||
}
|
||||
|
||||
all_hosts = all_hosts.split(",")
|
||||
all_hosts = all_hosts.split(',')
|
||||
|
||||
host_list.split(",").each{|host|
|
||||
return false if all_hosts.include?(host)
|
||||
|
Loading…
x
Reference in New Issue
Block a user