diff --git a/lib/ansible/parsing/vault/__init__.py b/lib/ansible/parsing/vault/__init__.py index d174e71073..bf2d5b2081 100644 --- a/lib/ansible/parsing/vault/__init__.py +++ b/lib/ansible/parsing/vault/__init__.py @@ -493,7 +493,7 @@ class VaultFile(object): # VaultFile a context manager instead (implement __enter__ and __exit__) def __del__(self): self.filehandle.close() - os.unlink(self.tmplfile) + os.unlink(self.tmpfile) def is_encrypted(self): peak = self.filehandle.readline()