From 560ff0bc026d909741680159856d003a2a219fd8 Mon Sep 17 00:00:00 2001 From: beelit94 Date: Mon, 15 May 2017 11:07:01 +0800 Subject: [PATCH] output debug message for variables write to temporary file --- python_terraform/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python_terraform/__init__.py b/python_terraform/__init__.py index fe0d3d3..896d2e0 100644 --- a/python_terraform/__init__.py +++ b/python_terraform/__init__.py @@ -294,8 +294,9 @@ class VariableFiles(object): def create(self, variables): with tempfile.NamedTemporaryFile('w+t', delete=False) as temp: - logging.debug('{0} is created'.format(temp.name)) + log.debug('{0} is created'.format(temp.name)) self.files.append(temp) + log.debug('variables wrote to tempfile: {0}'.format(str(variables))) temp.write(json.dumps(variables)) file_name = temp.name