return empty key pairs response
This commit is contained in:
parent
390d3b900c
commit
d438b05d41
@ -1,3 +1,4 @@
|
||||
from jinja2 import Template
|
||||
from moto.core.responses import BaseResponse
|
||||
|
||||
|
||||
@ -9,7 +10,15 @@ class KeyPairs(BaseResponse):
|
||||
raise NotImplementedError('KeyPairs.delete_key_pair is not yet implemented')
|
||||
|
||||
def describe_key_pairs(self):
|
||||
raise NotImplementedError('KeyPairs.describe_key_pairs is not yet implemented')
|
||||
template = Template(DESCRIBE_KEY_PAIRS_RESPONSE)
|
||||
return template.render(keypairs=[])
|
||||
|
||||
def import_key_pair(self):
|
||||
raise NotImplementedError('KeyPairs.import_key_pair is not yet implemented')
|
||||
|
||||
|
||||
DESCRIBE_KEY_PAIRS_RESPONSE = """<DescribeKeyPairsResponse xmlns="http://ec2.amazonaws.com/doc/2013-10-15/">
|
||||
<requestId>59dbff89-35bd-4eac-99ed-be587EXAMPLE</requestId>
|
||||
<keySet>
|
||||
</keySet>
|
||||
</DescribeKeyPairsResponse>"""
|
||||
|
Loading…
Reference in New Issue
Block a user