Sha256: 820c7287fe0519da42c708e3b4b974d03be972ff4bccd1b3c44ec5416afba952

Contents?: true

Size: 460 Bytes

Versions: 3

Compression:

Stored size: 460 Bytes

Contents

module Vcloud
  module EdgeGateway
    class GatewayIpsecVpnConfigurationDiffer < ConfigurationDiffer

      def strip_fields_for_differ_to_ignore(config)
        deep_cloned_config = Marshal.load( Marshal.dump(config) )
        if deep_cloned_config.key?(:GatewayIpsecVpnService)
          deep_cloned_config[:GatewayIpsecVpnService].each do |vpn|
            vpn.delete(:Id)
          end
        end
        deep_cloned_config
      end

    end
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
vcloud-edge_gateway-2.1.1 lib/vcloud/edge_gateway/gateway_ipsec_vpn_configuration_differ.rb
vcloud-edge_gateway-2.1.0 lib/vcloud/edge_gateway/gateway_ipsec_vpn_configuration_differ.rb
vcloud-edge_gateway-1.5.2 lib/vcloud/edge_gateway/gateway_ipsec_vpn_configuration_differ.rb