SSM SendCommand InstanceIds are optional. Closes #1534.
This commit is contained in:
parent
f38378d7ec
commit
94ba2e68bd
@ -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…
Reference in New Issue
Block a user