Commit Graph

226 Commits (6ea1320bef60b35f162daf981e10e5d37dc4a611)
 

Author SHA1 Message Date
Marwan Rabbâa e9255b118c add force param to terraform apply 7 years ago
beelit94 bd6528e68e Merge pull request #24 from surround-io/develop
Full support for output(); support for raise_on_error
7 years ago
Sam McKelvie 98d221c779 address pull request feedback 7 years ago
Sam McKelvie 99c67e5fe5 Address pull request feedback 7 years ago
Sam McKelvie 4945f4591d Make tests pass with old and new terraform 7 years ago
Sam McKelvie 723ab0b79e Merge pull request #1 from surround-io/sammck-develop
Add full support for 'output' command, and enable raise_on_error option
7 years ago
Sam McKelvie ec826887f5 Add full support for 'output' command, and enable raise_on_error option
Add a general "raise_on_error" option to all terraform commands. If provided and
set to anything that evaluates to True, then TerraformCommandError (a subclass of
subprocess.CalledProcessError) will be raised if the returncode is not 0. The exception
object will have the following special proerties:
    returncode: The returncode from the command, as in subprocess.CalledProcessError.
    out:        The contents of stdout if available, otherwise None
    err:        The contents of stderr if available, otherwise None

Terraform.output() no longer requires an argument for the output name; if omitted, it
returns a dict of all outputs, exactly as expected from 'terraform output -json'.

Terraform.output() now accepts an optional "full_value" option. If provided and True, and
an output name was provided, then the return value will be a dict with "value", "type",
and "sensitive" fields, exactly as expected from 'terraform output -json <output-name>'

Added tests for all of this new functionality...
7 years ago
beelit94 9afa4e1d4e Merge branch 'release/0.9.1' 7 years ago
beelit94 a4b36e1418 Merge branch 'release/0.9.1' into develop 7 years ago
beelit94 3c9ea8b526 Bump version: 0.9.0 → 0.9.1 7 years ago
beelit94 45860aa39c add release note 7 years ago
beelit94 042868bada Merge pull request #21 from beelit94/feature/minior_refactor
minor refactor
7 years ago
beelit94 68954d1447 Merge branch 'develop' into asynch 7 years ago
beelit94 b098b5a1d8 minor refactor 7 years ago
beelit94 4191b40cdc Merge pull request #20 from beelit94/python-terraform-10
add changelog handler
7 years ago
beelit94 86182a604f add changelog 7 years ago
beelit94 3b181bc403 Merge pull request #19 from jaustinpage/develop
Support for Terraform init, and using backend configs.
7 years ago
Austin Page 825fa0e54f
Adding init command and support for backend terraform state files 7 years ago
Raquel Alegre da5e648e3f Move version up. 7 years ago
Raquel Alegre 0b2eb3b1be Return a reference to the subprocess so output can be handled from elsewhere. 7 years ago
beelit94 d23f85a035 Merge branch 'release/0.9.0' 7 years ago
beelit94 2e9c6d3b92 Bump version: 0.8.6 → 0.9.0 7 years ago
beelit94 6d1f1be9ec add changelog 7 years ago
beelit94 80e017fcf0 Merge remote-tracking branch 'origin/develop' into develop 7 years ago
beelit94 64a06f9bd7 ignore dropbox files 7 years ago
beelit94 5213202861 Merge pull request #17 from beelit94/python-terraform-16
handle space or special characters in windows & linux
7 years ago
beelit94 4f20dfab75 handle space or special characters in windows & linux 7 years ago
beelit94 58c1146387 Merge pull request #13 from beelit94/bug/fix-output-args
fix https://github.com/beelit94/python-terraform/issues/12
7 years ago
beelit94 4c65c1bbbe add compatabilty for 0.10.0 7 years ago
beelit94 3c700b9830 add compatabilty for 0.10.0 7 years ago
beelit94 3b5fe8203e clean up files 7 years ago
beelit94 965a39e3bf 1. test with more felxible string order
2. test with latest terraform
7 years ago
beelit94 12d57862ed add more parameter test for output 7 years ago
Wythe Lin 8214c6ac61 fix typo 7 years ago
Wythe Lin 966f2d9f64 remove wrong variables 7 years ago
Wythe Lin 5b6f4c133e add dir_or_plan parameter 7 years ago
Wythe Lin 6fdd205527 remove 7 years ago
Wythe Lin f7691f7d3c fix https://github.com/beelit94/python-terraform/issues/12 7 years ago
beelit94 3ae7f87df9 Merge branch 'release/0.8.6' 7 years ago
beelit94 b1d1efac12 Merge branch 'release/0.8.6' into develop 7 years ago
beelit94 964384d0bc Bump version: 0.8.5 → 0.8.6 7 years ago
beelit94 560ff0bc02 output debug message for variables write to temporary file 7 years ago
beelit94 cd0ab7a4e6 fix import instruction 7 years ago
beelit94 a57a001d70 Merge branch 'release/0.8.5' 7 years ago
beelit94 540cedaed4 Bump version: 0.8.4 → 0.8.5 7 years ago
beelit94 800e6657f2 add python 3.6 7 years ago
beelit94 32a9bc78e8 Merge remote-tracking branch 'origin/develop' into develop 7 years ago
beelit94 2213268d49 refactor readme 7 years ago
beelit94 1347e57fa8 Merge pull request #9 from beelit94/python-terraform-8
fix python-terraform-8, can't call the method when terraform cmd name is same as python reserved keyword
7 years ago
beelit94 4709bd069a fix test code 7 years ago