ACCOUNT_ID moved to moto.core, MOTO_ACCOUNT_ID env var override
This commit is contained in:
parent
fb9ebe5a47
commit
fd9ac4b9a5
60 changed files with 67 additions and 67 deletions
|
|
@ -1,6 +1,6 @@
|
|||
from __future__ import unicode_literals
|
||||
|
||||
from .models import BaseModel, BaseBackend, moto_api_backend # noqa
|
||||
from .models import BaseModel, BaseBackend, moto_api_backend, ACCOUNT_ID # noqa
|
||||
from .responses import ActionAuthenticatorMixin
|
||||
|
||||
moto_api_backends = {"global": moto_api_backend}
|
||||
|
|
|
|||
|
|
@ -24,7 +24,8 @@ from botocore.awsrequest import AWSRequest
|
|||
from botocore.credentials import Credentials
|
||||
from six import string_types
|
||||
|
||||
from moto.iam.models import ACCOUNT_ID, Policy
|
||||
from moto.core import ACCOUNT_ID
|
||||
from moto.iam.models import Policy
|
||||
from moto.iam import iam_backend
|
||||
from moto.core.exceptions import (
|
||||
SignatureDoesNotMatchError,
|
||||
|
|
|
|||
|
|
@ -23,6 +23,9 @@ from .utils import (
|
|||
)
|
||||
|
||||
|
||||
ACCOUNT_ID = os.environ.get('MOTO_ACCOUNT_ID','123456789012')
|
||||
|
||||
|
||||
class BaseMockAWS(object):
|
||||
nested_count = 0
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue