fix some pylints

This commit is contained in:
jem 2022-01-21 13:36:42 +01:00
parent 382c571d42
commit 124300c271

View file

@ -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: