Add instance type offerings to manifesti and fix linting
This commit is contained in:
parent
114a8efac8
commit
f23ad29810
@ -1,6 +1,7 @@
|
|||||||
include README.md LICENSE AUTHORS.md
|
include README.md LICENSE AUTHORS.md
|
||||||
include requirements.txt requirements-dev.txt tox.ini
|
include requirements.txt requirements-dev.txt tox.ini
|
||||||
include moto/ec2/resources/instance_types.json
|
include moto/ec2/resources/instance_types.json
|
||||||
|
include moto/ec2/resources/instance_type_offerings.json
|
||||||
include moto/ec2/resources/amis.json
|
include moto/ec2/resources/amis.json
|
||||||
include moto/cognitoidp/resources/*.json
|
include moto/cognitoidp/resources/*.json
|
||||||
include moto/dynamodb2/parsing/reserved_keywords.txt
|
include moto/dynamodb2/parsing/reserved_keywords.txt
|
||||||
|
@ -205,6 +205,7 @@ class InvalidInstanceTypeError(EC2ClientError):
|
|||||||
"The instance type '{0}' does not exist".format(instance_type),
|
"The instance type '{0}' does not exist".format(instance_type),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
class InvalidAMIIdError(EC2ClientError):
|
class InvalidAMIIdError(EC2ClientError):
|
||||||
def __init__(self, ami_id):
|
def __init__(self, ami_id):
|
||||||
super(InvalidAMIIdError, self).__init__(
|
super(InvalidAMIIdError, self).__init__(
|
||||||
|
@ -2127,4 +2127,4 @@
|
|||||||
"instance_type": "z1d.xlarge",
|
"instance_type": "z1d.xlarge",
|
||||||
"location": "us-east-1b"
|
"location": "us-east-1b"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
from boto.ec2.instancetype import InstanceType
|
|
||||||
|
|
||||||
from moto.autoscaling import autoscaling_backends
|
from moto.autoscaling import autoscaling_backends
|
||||||
from moto.core.responses import BaseResponse
|
from moto.core.responses import BaseResponse
|
||||||
@ -862,4 +861,4 @@ EC2_DESCRIBE_INSTANCE_TYPE_OFFERINGS = """<?xml version="1.0" encoding="UTF-8"?>
|
|||||||
</item>
|
</item>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</instanceTypeOfferingSet>
|
</instanceTypeOfferingSet>
|
||||||
</DescribeInstanceTypeOfferingsResponse>"""
|
</DescribeInstanceTypeOfferingsResponse>"""
|
||||||
|
Loading…
Reference in New Issue
Block a user