SSM SendCommand InstanceIds are optional. Closes #1534.
This commit is contained in:
parent
f38378d7ec
commit
94ba2e68bd
1 changed files with 1 additions and 1 deletions
|
|
@ -142,7 +142,7 @@ class SimpleSystemManagerBackend(BaseBackend):
|
|||
return self._resource_tags[resource_type][resource_id]
|
||||
|
||||
def send_command(self, **kwargs):
|
||||
instances = kwargs['InstanceIds']
|
||||
instances = kwargs.get('InstanceIds', [])
|
||||
now = datetime.datetime.now()
|
||||
expires_after = now + datetime.timedelta(0, int(kwargs['TimeoutSeconds']))
|
||||
return {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue