mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Allow empty string for EC2 session token from env.
This commit is contained in:
parent
425d35ef0f
commit
785bc93ff7
1 changed files with 2 additions and 1 deletions
|
@ -208,7 +208,8 @@ def get_aws_connection_info(module, boto3=False):
|
|||
security_token = os.environ['AWS_SESSION_TOKEN']
|
||||
elif 'EC2_SECURITY_TOKEN' in os.environ:
|
||||
security_token = os.environ['EC2_SECURITY_TOKEN']
|
||||
else:
|
||||
|
||||
if not security_token:
|
||||
# in case security_token came in as empty string
|
||||
security_token = None
|
||||
|
||||
|
|
Loading…
Reference in a new issue