File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -178,12 +178,14 @@ def voms_map(self):
178
178
"Using deprecated 'tenant' mapping, please "
179
179
"use 'projects' instead" ,
180
180
DeprecationWarning ,
181
+ stacklevel = 2 ,
181
182
)
182
183
if tenants :
183
184
warnings .warn (
184
185
"Using deprecated 'tenants' mapping, please "
185
186
"use 'projects' instead" ,
186
187
DeprecationWarning ,
188
+ stacklevel = 2 ,
187
189
)
188
190
tenants .append (tenant )
189
191
projects = vomap .get ("projects" , tenants )
Original file line number Diff line number Diff line change @@ -182,5 +182,5 @@ def __init__(self):
182
182
"'ssm' as messenger instead in order to use the latest "
183
183
"version."
184
184
)
185
- warnings .warn (msg , DeprecationWarning )
185
+ warnings .warn (msg , DeprecationWarning , stacklevel = 2 )
186
186
super (SSMMessengerV04 , self ).__init__ ()
You can’t perform that action at this time.
0 commit comments