From 71aa9dcaedfb23f5f66c4a0ddb334321ec44cd23 Mon Sep 17 00:00:00 2001 From: Dick Marinus Date: Thu, 6 Aug 2020 21:14:56 +0200 Subject: [PATCH] 0.5.0 bugfix: ask token until found --- aws_credential_process.py | 3 +++ pyproject.toml | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/aws_credential_process.py b/aws_credential_process.py index c62ad34..e24d8b6 100755 --- a/aws_credential_process.py +++ b/aws_credential_process.py @@ -306,6 +306,9 @@ def token_code(): else: time.sleep(1) + if token_code is not None: + break + return token_code mfa_session_request = ( diff --git a/pyproject.toml b/pyproject.toml index c8dfad1..0d928da 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "aws-credential-process" -version = "0.4.0" +version = "0.5.0" description = "AWS Credential Process" authors = ["Dick Marinus "] readme = "README.md"