Lints.
This commit is contained in:
parent
1433f28846
commit
f37bad0e00
260 changed files with 6363 additions and 3766 deletions
|
|
@ -1,4 +1,4 @@
|
|||
from __future__ import unicode_literals
|
||||
from .models import instance_metadata_backend
|
||||
|
||||
instance_metadata_backends = {"global": instance_metadata_backend}
|
||||
instance_metadata_backends = {"global": instance_metadata_backend}
|
||||
|
|
|
|||
|
|
@ -4,4 +4,5 @@ from moto.core.models import BaseBackend
|
|||
class InstanceMetadataBackend(BaseBackend):
|
||||
pass
|
||||
|
||||
|
||||
instance_metadata_backend = InstanceMetadataBackend()
|
||||
|
|
|
|||
|
|
@ -7,6 +7,7 @@ from moto.core.responses import BaseResponse
|
|||
|
||||
|
||||
class InstanceMetadataResponse(BaseResponse):
|
||||
|
||||
def metadata_response(self, request, full_url, headers):
|
||||
"""
|
||||
Mock response for localhost metadata
|
||||
|
|
@ -43,5 +44,6 @@ class InstanceMetadataResponse(BaseResponse):
|
|||
elif path == 'iam/security-credentials/default-role':
|
||||
result = json.dumps(credentials)
|
||||
else:
|
||||
raise NotImplementedError("The {0} metadata path has not been implemented".format(path))
|
||||
raise NotImplementedError(
|
||||
"The {0} metadata path has not been implemented".format(path))
|
||||
return 200, headers, result
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue