fix some pylints
This commit is contained in:
parent
382c571d42
commit
124300c271
1 changed files with 4 additions and 4 deletions
|
@ -467,7 +467,7 @@ class Terraform:
|
||||||
"""
|
"""
|
||||||
"""
|
"""
|
||||||
result = []
|
result = []
|
||||||
|
|
||||||
for option, value in kwargs.items():
|
for option, value in kwargs.items():
|
||||||
if "_" in option:
|
if "_" in option:
|
||||||
option = option.replace("_", "-")
|
option = option.replace("_", "-")
|
||||||
|
@ -507,10 +507,10 @@ class Terraform:
|
||||||
|
|
||||||
result += [f"-{option}={value}"]
|
result += [f"-{option}={value}"]
|
||||||
return result
|
return result
|
||||||
|
|
||||||
def __exit__(self, exc_type, exc_value, traceback) -> None:
|
def __exit__(self, exc_type, exc_value, traceback) -> None:
|
||||||
self.temp_var_files.clean_up()
|
self.temp_var_files.clean_up()
|
||||||
|
|
||||||
def __getattr__(self, item: str) -> Callable:
|
def __getattr__(self, item: str) -> Callable:
|
||||||
def wrapper(*args, **kwargs):
|
def wrapper(*args, **kwargs):
|
||||||
cmd_name = str(item)
|
cmd_name = str(item)
|
||||||
|
@ -522,7 +522,7 @@ class Terraform:
|
||||||
|
|
||||||
return wrapper
|
return wrapper
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class VariableFiles:
|
class VariableFiles:
|
||||||
|
|
Loading…
Reference in a new issue