boto3-refresh-session 0.1.18__py3-none-any.whl → 0.1.19__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -137,11 +137,10 @@ class AutoRefreshableSession:
137
137
  """
138
138
 
139
139
  # being careful not to duplicate logs
140
- msg = "Refreshing temporary AWS credentials"
141
- if self.defer_refresh and self._creds_already_fetched:
142
- logger.info(msg)
143
- elif not self.defer_refresh and self._creds_already_fetched > 1:
144
- logger.info(msg)
140
+ if (self.defer_refresh and self._creds_already_fetched) or (
141
+ not self.defer_refresh and self._creds_already_fetched > 1
142
+ ):
143
+ logger.info("Refreshing temporary AWS credentials")
145
144
  else:
146
145
  self._creds_already_fetched += 1
147
146
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: boto3-refresh-session
3
- Version: 0.1.18
3
+ Version: 0.1.19
4
4
  Summary: A simple Python package for refreshing boto3 sessions automatically.
5
5
  License: MIT
6
6
  Keywords: boto3,botocore,aws
@@ -0,0 +1,6 @@
1
+ boto3_refresh_session/__init__.py,sha256=OMY8el4qROyEvo0vr1Kv8rtFU7g3xnjHuBss54XRTEA,135
2
+ boto3_refresh_session/session.py,sha256=wxh9ZXgjrXv6ouN2vpa9ow0KrQG8-O_Jc8_6w2Fa8oo,5537
3
+ boto3_refresh_session-0.1.19.dist-info/LICENSE,sha256=I3ZYTXAjbIly6bm6J-TvFTuuHwTKws4h89QaY5c5HiY,1067
4
+ boto3_refresh_session-0.1.19.dist-info/METADATA,sha256=kt5tDN6mR3zr_lwhCkTlOXg-zxtdX5oUJvh3vyWBz_k,4463
5
+ boto3_refresh_session-0.1.19.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
6
+ boto3_refresh_session-0.1.19.dist-info/RECORD,,
@@ -1,6 +0,0 @@
1
- boto3_refresh_session/__init__.py,sha256=OMY8el4qROyEvo0vr1Kv8rtFU7g3xnjHuBss54XRTEA,135
2
- boto3_refresh_session/session.py,sha256=NIQLVWoXvQQIyfBBi_MHE351RIZdGUoSO3xHK1V01Rw,5569
3
- boto3_refresh_session-0.1.18.dist-info/LICENSE,sha256=I3ZYTXAjbIly6bm6J-TvFTuuHwTKws4h89QaY5c5HiY,1067
4
- boto3_refresh_session-0.1.18.dist-info/METADATA,sha256=_91E3MIBGwiklTHQKpKKoVrSE0lLq0JNhRJIytuB7vc,4463
5
- boto3_refresh_session-0.1.18.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
6
- boto3_refresh_session-0.1.18.dist-info/RECORD,,