require 'fog'

module Vcloud
  module NetLauncher
    class NetLaunch

      def initialize
        @config_loader = Vcloud::Core::ConfigLoader.new
      end

      def run(config_file = nil, options = {})
        config = @config_loader.load_config(config_file)

        if options[:mock] || ENV['FOG_MOCK']
          ::Fog.mock!
        end

        config[:org_vdc_networks].each do |net_config|
          net_config[:fence_mode] ||= 'isolated'
          Vcloud::Core.logger.info("Provisioning orgVdcNetwork #{net_config[:name]}.")
          begin
            net = Vcloud::Core::OrgVdcNetwork.provision(net_config)
          rescue RuntimeError => e
            Vcloud::Core.logger.error("Could not provision orgVdcNetwork: #{e.message}")
            raise
          end
        end
      end
    end
  end
end

require 'fog'

module Vcloud
  module NetLauncher
    class NetLaunch

      def initialize
        @config_loader = Vcloud::Core::ConfigLoader.new
      end

      def run(config_file = nil, options = {})
        config = @config_loader.load_config(config_file)

        if options[:mock] || ENV['FOG_MOCK']
          ::Fog.mock!
        end

        config[:org_vdc_networks].each do |net_config|
          net_config[:fence_mode] ||= 'isolated'
          Vcloud::Core.logger.info("Provisioning orgVdcNetwork #{net_config[:name]}.")
          begin
            Vcloud::Core::OrgVdcNetwork.provision(net_config)
          rescue RuntimeError => e
            Vcloud::Core.logger.error("Could not provision orgVdcNetwork: #{e.message}")
            raise
          end
        end
      end
    end
  end
end

Remove unused var assignment in NetLaunch
Remove unused var assignment in NetLaunch

To fix lint warning:
```
lib/vcloud/net_launcher/net_launch.rb:22:13: W: Useless assignment to variable - net.
            net = Vcloud::Core::OrgVdcNetwork.provision(net_config)
            ^^^
```
