lib/fog/bouncer/group.rb in fog-bouncer-0.2.5 vs lib/fog/bouncer/group.rb in fog-bouncer-0.2.6

- old
+ new

@@ -93,10 +93,10 @@ source.protocols.select { |p| p.remote? } end.flatten.compact if remote? && permissions.any? log(revoke: true) do - remote.connection.revoke_security_group_ingress(name, "IpPermissions" => IPPermissions.from(permissions)) unless Fog::Bouncer.pretending? + remote.service.revoke_security_group_ingress(name, "IpPermissions" => IPPermissions.from(permissions)) unless Fog::Bouncer.pretending? permissions.each do |protocol| log({revoked: true}.merge(protocol.to_log)) protocol.source.protocols.delete_if { |p| p == protocol } unless Fog::Bouncer.pretending? end end