diff --git a/lib/fog/aws/parsers/auto_scaling/describe_launch_configurations.rb b/lib/fog/aws/parsers/auto_scaling/describe_launch_configurations.rb index ab14f7c6a..19a504621 100644 --- a/lib/fog/aws/parsers/auto_scaling/describe_launch_configurations.rb +++ b/lib/fog/aws/parsers/auto_scaling/describe_launch_configurations.rb @@ -66,7 +66,7 @@ module Fog @launch_configuration[name] = value when 'KernelId', 'RamdiskId', 'UserData' @launch_configuration[name] = value - when 'IamInstanceProfile' + when 'IamInstanceProfile', 'PlacementTenancy' @launch_configuration[name] = value when 'SpotPrice' @launch_configuration[name] = value.to_f diff --git a/tests/requests/auto_scaling/auto_scaling_tests.rb b/tests/requests/auto_scaling/auto_scaling_tests.rb index cdc586ce3..a5264fdc5 100644 --- a/tests/requests/auto_scaling/auto_scaling_tests.rb +++ b/tests/requests/auto_scaling/auto_scaling_tests.rb @@ -7,14 +7,18 @@ Shindo.tests('AWS::AutoScaling | auto_scaling_tests', ['aws', 'auto_scaling']) d image_id = 'ami-8c1fece5' instance_type = 't1.micro' #listeners = [{'LoadBalancerPort' => 80, 'InstancePort' => 80, 'Protocol' => 'http'}] - Fog::AWS[:auto_scaling].create_launch_configuration(image_id, instance_type, @lc_name).body + options = { + 'PlacementTenancy' => 'dedicated', + } + Fog::AWS[:auto_scaling].create_launch_configuration(image_id, instance_type, @lc_name, options).body end tests("#describe_launch_configurations").formats(AWS::AutoScaling::Formats::DESCRIBE_LAUNCH_CONFIGURATIONS) do Fog::AWS[:auto_scaling].describe_launch_configurations().body end tests("#describe_launch_configurations").formats(AWS::AutoScaling::Formats::DESCRIBE_LAUNCH_CONFIGURATIONS) do - Fog::AWS[:auto_scaling].describe_launch_configurations('LaunchConfigurationNames' => @lc_name).body + body = Fog::AWS[:auto_scaling].describe_launch_configurations('LaunchConfigurationNames' => @lc_name).body + returns(body['PlacementTenancy']) { 'dedicated' } end tests("#describe_launch_configurations").formats(AWS::AutoScaling::Formats::DESCRIBE_LAUNCH_CONFIGURATIONS) do Fog::AWS[:auto_scaling].describe_launch_configurations('LaunchConfigurationNames' => [@lc_name]).body