forked from TrueCloudLab/frostfs-testlib
[OBJECT-10059] Fix signatures in boto3 and aws with iam_create_virtual_mfa_device methods
This commit is contained in:
parent
7382f36389
commit
22b4a435e8
2 changed files with 2 additions and 2 deletions
|
@ -1443,7 +1443,7 @@ class AwsCliClient(S3ClientWrapper):
|
||||||
|
|
||||||
# MFA METHODS
|
# MFA METHODS
|
||||||
@reporter.step("Creates a new virtual MFA device")
|
@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}\
|
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}"
|
--outfile {outfile} --bootstrap-method {bootstrap_method} --endpoint {self.iam_endpoint}"
|
||||||
|
|
||||||
|
|
|
@ -1280,7 +1280,7 @@ class Boto3ClientWrapper(S3ClientWrapper):
|
||||||
@reporter.step("Creates a new virtual MFA device")
|
@reporter.step("Creates a new virtual MFA device")
|
||||||
def iam_create_virtual_mfa_device(
|
def iam_create_virtual_mfa_device(
|
||||||
self, virtual_mfa_device_name: str, outfile: Optional[str] = None, bootstrap_method: Optional[str] = None
|
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)
|
response = self.boto3_iam_client.create_virtual_mfa_device(VirtualMFADeviceName=virtual_mfa_device_name)
|
||||||
|
|
||||||
serial_number = response.get("VirtualMFADevice", {}).get("SerialNumber")
|
serial_number = response.get("VirtualMFADevice", {}).get("SerialNumber")
|
||||||
|
|
Loading…
Reference in a new issue