diff --git a/src/ozones/Server/lib/OZones/VDC.rb b/src/ozones/Server/lib/OZones/VDC.rb index 60b734f828..bdc23b1ae7 100644 --- a/src/ozones/Server/lib/OZones/VDC.rb +++ b/src/ozones/Server/lib/OZones/VDC.rb @@ -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" } diff --git a/src/ozones/Server/models/OzonesServer.rb b/src/ozones/Server/models/OzonesServer.rb index 687fe5aee5..e8015b9dc2 100644 --- a/src/ozones/Server/models/OzonesServer.rb +++ b/src/ozones/Server/models/OzonesServer.rb @@ -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)