Skip to content

Commit

Permalink
Fix capitalization in AwsVpcConfiguration (cloudtools#1788)
Browse files Browse the repository at this point in the history
  • Loading branch information
akarve authored Sep 22, 2020
1 parent 28b06a1 commit 1ca9e8c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions examples/ECSFargate.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from troposphere.ecs import (
Cluster, Service, TaskDefinition,
ContainerDefinition, NetworkConfiguration,
AwsvpcConfiguration, PortMapping
AwsVpcConfiguration, PortMapping
)

t = Template()
Expand Down Expand Up @@ -40,7 +40,7 @@
TaskDefinition=Ref(task_definition),
LaunchType='FARGATE',
NetworkConfiguration=NetworkConfiguration(
AwsvpcConfiguration=AwsvpcConfiguration(
AwsVpcConfiguration=AwsVpcConfiguration(
Subnets=[Ref('Subnet')]
)
)
Expand Down
2 changes: 1 addition & 1 deletion tests/examples_output/ECSFargate.template
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"DesiredCount": 1,
"LaunchType": "FARGATE",
"NetworkConfiguration": {
"AwsvpcConfiguration": {
"AwsVpcConfiguration": {
"Subnets": [
{
"Ref": "Subnet"
Expand Down
2 changes: 1 addition & 1 deletion tests/test_ecs.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def test_fargate_launch_type(self):
],
LaunchType='FARGATE',
NetworkConfiguration=ecs.NetworkConfiguration(
AwsvpcConfiguration=ecs.AwsvpcConfiguration(
AwsVpcConfiguration=ecs.AwsVpcConfiguration(
AssignPublicIp='DISABLED',
SecurityGroups=['sg-1234'],
Subnets=['subnet-1234']
Expand Down
4 changes: 2 additions & 2 deletions troposphere/ecs.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ class PlacementStrategy(AWSProperty):
}


class AwsvpcConfiguration(AWSProperty):
class AwsVpcConfiguration(AWSProperty):
props = {
'AssignPublicIp': (basestring, False),
'SecurityGroups': (list, False),
Expand All @@ -157,7 +157,7 @@ class AwsvpcConfiguration(AWSProperty):

class NetworkConfiguration(AWSProperty):
props = {
'AwsvpcConfiguration': (AwsvpcConfiguration, False),
'AwsVpcConfiguration': (AwsVpcConfiguration, False),
}


Expand Down

0 comments on commit 1ca9e8c

Please sign in to comment.