boto3-refresh-session 0.1.18__tar.gz → 0.1.19__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
@@ -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
  [project]
2
2
  name = "boto3-refresh-session"
3
- version = "0.1.18"
3
+ version = "0.1.19"
4
4
  description = "A simple Python package for refreshing boto3 sessions automatically."
5
5
  authors = [
6
6
  {name = "Mike Letts",email = "lettsmt@gmail.com"}