Store JSON in Python for instance types

This allows it to be bundled in the distributed app more simply
This commit is contained in:
Jack Danger 2017-09-27 13:50:48 -07:00
commit 4c1d0c3f5f
5 changed files with 2178 additions and 4 deletions

View file

@ -67,6 +67,7 @@ from .exceptions import (
MotoNotImplementedError,
FilterNotImplementedError
)
from .resources.instance_types import instance_types_data
from .utils import (
EC2_RESOURCE_TO_PREFIX,
EC2_PREFIX_TO_RESOURCE,
@ -112,7 +113,7 @@ from .utils import (
)
RESOURCES_DIR = os.path.join(os.path.dirname(__file__), 'resources')
INSTANCE_TYPES = json.load(open(os.path.join(RESOURCES_DIR, 'instance_types.json'), 'r'))
INSTANCE_TYPES = json.loads(instance_types_data)
def utc_date_and_time():

View file

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load diff