File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -36,9 +36,7 @@ def _env_config() -> List[str]:
3636
3737HELPER_PREFIX = "helper:"
3838
39- HELPER_ATTRIBUTES = [
40- "job_token" , "http_password" , "private_token" , "oauth_token"
41- ]
39+ HELPER_ATTRIBUTES = ["job_token" , "http_password" , "private_token" , "oauth_token" ]
4240
4341class ConfigError (Exception ):
4442 pass
@@ -202,11 +200,11 @@ def __init__(
202200 pass
203201
204202 def _get_values_from_helper (self ):
205- """Update attributes, which may get values from an external helper program
206- """
203+ """Update attributes, which may get values from an external helper program"""
207204 for attr in HELPER_ATTRIBUTES :
208205 value = getattr (self , attr )
209- if isinstance (value , str ) and value .lower ().strip ().startswith (HELPER_PREFIX ):
206+ _value_lower = value .lower ().strip ()
207+ if isinstance (value , str ) and _value_lower .startswith (HELPER_PREFIX ):
210208 helper = value [len (HELPER_PREFIX ) :].strip ()
211209 value = subprocess .check_output ([helper ]).decode ("utf-8" ).strip ()
212210 setattr (self , attr , value )
You can’t perform that action at this time.
0 commit comments