[OBJECT-10059] Fix signatures in boto3 and aws with iam_create_virtual_mfa_device methods

This commit is contained in:
Roman Chernykh 2024-11-11 11:01:36 +03:00 committed by Roman Chernykh
parent 80ef3bc67d
commit 05380a8605
2 changed files with 2 additions and 2 deletions

View file

@ -1443,7 +1443,7 @@ class AwsCliClient(S3ClientWrapper):
# MFA METHODS
@reporter.step("Creates a new virtual MFA device")
def iam_create_virtual_mfa_device(self, virtual_mfa_device_name: str, outfile: str, bootstrap_method: str) -> tuple[str, bool]:
def iam_create_virtual_mfa_device(self, virtual_mfa_device_name: str, outfile: str, bootstrap_method: str) -> tuple:
cmd = f"aws {self.common_flags} iam create-virtual-mfa-device --virtual-mfa-device-name {virtual_mfa_device_name}\
--outfile {outfile} --bootstrap-method {bootstrap_method} --endpoint {self.iam_endpoint}"

View file

@ -1280,7 +1280,7 @@ class Boto3ClientWrapper(S3ClientWrapper):
@reporter.step("Creates a new virtual MFA device")
def iam_create_virtual_mfa_device(
self, virtual_mfa_device_name: str, outfile: Optional[str] = None, bootstrap_method: Optional[str] = None
) -> dict:
) -> tuple:
response = self.boto3_iam_client.create_virtual_mfa_device(VirtualMFADeviceName=virtual_mfa_device_name)
serial_number = response.get("VirtualMFADevice", {}).get("SerialNumber")