From 966f2d9f6463798f26cf594a550b538454efbc62 Mon Sep 17 00:00:00 2001 From: Wythe Lin Date: Wed, 2 Aug 2017 15:18:11 -0700 Subject: [PATCH] remove wrong variables --- python_terraform/__init__.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/python_terraform/__init__.py b/python_terraform/__init__.py index 67bbd3b..78b513c 100644 --- a/python_terraform/__init__.py +++ b/python_terraform/__init__.py @@ -250,15 +250,12 @@ class Terraform(object): else: return ret_code, None, None - def output(self, name, dir_or_plan=None, **kwargs): + def output(self, name, *args, **kwargs): """ https://www.terraform.io/docs/commands/output.html :param name: name of output :return: output value """ - options = kwargs - options = self._generate_default_options(options) - args = self._generate_default_args(dir_or_plan) ret, out, err = self.cmd( 'output', name, json=IsFlagged, *args, **options)