This commit is contained in:
parent
b1d1efac12
commit
f7691f7d3c
1 changed files with 10 additions and 4 deletions
|
@ -250,13 +250,19 @@ class Terraform(object):
|
|||
else:
|
||||
return ret_code, None, None
|
||||
|
||||
def output(self, name):
|
||||
def output(self, name, **kwargs):
|
||||
"""
|
||||
https://www.terraform.io/docs/commands/output.html
|
||||
:param name: name of output
|
||||
:return: output value
|
||||
"""
|
||||
ret, out, err = self.cmd('output', name, json=IsFlagged)
|
||||
options = kwargs
|
||||
options['detailed_exitcode'] = detailed_exitcode
|
||||
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)
|
||||
|
||||
log.debug('output raw string: {0}'.format(out))
|
||||
if ret != 0:
|
||||
|
|
Loading…
Reference in a new issue