Common: Add sleep before AWS command invocation

This commit is contained in:
Shreya Malviya 2022-02-08 17:07:19 +05:30
parent c129f809b0
commit 97059dcd75
1 changed files with 2 additions and 0 deletions

View File

@ -1,4 +1,5 @@
import logging
import time
from common.cloud.aws.aws_service import AwsService
from common.cmd.aws.aws_cmd_result import AwsCmdResult
@ -20,6 +21,7 @@ class AwsCmdRunner(CmdRunner):
self.ssm = AwsService.get_client("ssm", region)
def query_command(self, command_id):
time.sleep(2)
return self.ssm.get_command_invocation(CommandId=command_id, InstanceId=self.instance_id)
def get_command_result(self, command_info):