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 = []
for option, value in kwargs.items():
if "_" in option:
option = option.replace("_", "-")
@ -507,10 +507,10 @@ class Terraform:
result += [f"-{option}={value}"]
return result
def __exit__(self, exc_type, exc_value, traceback) -> None:
self.temp_var_files.clean_up()
def __getattr__(self, item: str) -> Callable:
def wrapper(*args, **kwargs):
cmd_name = str(item)
@ -522,7 +522,7 @@ class Terraform:
return wrapper
class VariableFiles: