From bc0ad983277c7c6738c911a8b1f2ad51417a0ac1 Mon Sep 17 00:00:00 2001 From: Rafael Goodman Date: Wed, 13 Jan 2016 00:05:57 -0500 Subject: [PATCH] Prevent "Unrecognized arguments: version" Fog warning when specifying region.version The :version argument is not recognized by the Fog::AWS::ELB service --- lib/vagrant-aws/action/connect_aws.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vagrant-aws/action/connect_aws.rb b/lib/vagrant-aws/action/connect_aws.rb index 76beda6f..425de01d 100644 --- a/lib/vagrant-aws/action/connect_aws.rb +++ b/lib/vagrant-aws/action/connect_aws.rb @@ -38,7 +38,7 @@ def call(env) @logger.info("Connecting to AWS...") env[:aws_compute] = Fog::Compute.new(fog_config) - env[:aws_elb] = Fog::AWS::ELB.new(fog_config.except(:provider, :endpoint)) + env[:aws_elb] = Fog::AWS::ELB.new(fog_config.except(:provider, :endpoint, :version)) @app.call(env) end