Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Commit c115f9c

Browse files
committed
Always use auto_renew=True by default for IAM sessions
1 parent 6b85dc3 commit c115f9c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/cloudant/client.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -790,4 +790,9 @@ def iam(cls, account_name, api_key, **kwargs):
790790
:param account_name: Cloudant account name.
791791
:param api_key: IAM authentication API key.
792792
"""
793-
return cls(None, api_key, account=account_name, use_iam=True, **kwargs)
793+
return cls(None,
794+
api_key,
795+
account=account_name,
796+
auto_renew=kwargs.get('auto_renew', True),
797+
use_iam=True,
798+
**kwargs)

0 commit comments

Comments
 (0)