morp 5.2.1__tar.gz → 5.2.2__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: morp
3
- Version: 5.2.1
3
+ Version: 5.2.2
4
4
  Summary: Send and receive messages without thinking about it
5
5
  Home-page: http://github.com/Jaymon/morp
6
6
  Author: Jay Marcyes
@@ -19,5 +19,5 @@ from .exception import (
19
19
  )
20
20
 
21
21
 
22
- __version__ = '5.2.1'
22
+ __version__ = '5.2.2'
23
23
 
@@ -84,7 +84,6 @@ class Interface(InterfaceABC):
84
84
 
85
85
  this will set the raw db connection to self.connection
86
86
  """
87
-
88
87
  if self.connected: return self.connected
89
88
  if connection_config: self.connection_config = connection_config
90
89
 
@@ -83,6 +83,8 @@ class RefreshableSession(boto3.Session):
83
83
  profile_name=self.connection_config.options.get("profile_name", None),
84
84
  )
85
85
 
86
+ session_ttl = self.connection_config.options.get("session_ttl", 3600)
87
+
86
88
  # if an sts arn is given, get credential by assuming given role
87
89
  if arn := self.connection_config.options.get("arn", ""):
88
90
  sts_client = session.client(
@@ -90,7 +92,6 @@ class RefreshableSession(boto3.Session):
90
92
  region_name=region,
91
93
  )
92
94
 
93
- session_ttl = self.connection_config.options.get("session_ttl", 3600)
94
95
  response = sts_client.assume_role(
95
96
  RoleArn=arn,
96
97
  RoleSessionName=self.connection_config.options.get(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: morp
3
- Version: 5.2.1
3
+ Version: 5.2.2
4
4
  Summary: Send and receive messages without thinking about it
5
5
  Home-page: http://github.com/Jaymon/morp
6
6
  Author: Jay Marcyes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes