124300c271
fix some pylints
2022-01-21 13:36:42 +01:00
42b4f18b3f
fixed destroy test
2022-01-12 15:00:30 +01:00
3d2c7ae396
fixed output tests
2022-01-12 13:07:46 +01:00
085273a726
one more test green
2021-11-09 09:18:49 +01:00
f913b1d6b7
default for compatibility
2021-11-05 13:27:25 +01:00
607cdaf408
adjust cmd to new 1.0 release
2021-10-23 15:37:29 +02:00
adb1fa06a4
add refresh & option to output latest cmd
2021-06-25 16:50:06 +02:00
Francois Lebreau
7080f38a93
Support Terraform 0.14
2021-02-28 13:44:58 +00:00
Francois Lebreau
785e9a3ce7
Fix tests
2021-01-21 10:07:00 +00:00
Francois Lebreau
bcd523ff67
Add typing
2021-01-21 01:01:34 +00:00
aubustou
6ea1320bef
Fix unit tests for Terraform 0.13
2020-10-21 00:08:58 +02:00
aubustou
151c5dc92a
Add pre-commit and apply Black format
2020-10-20 00:30:02 +02:00
aubustou
fc584c2a48
Migrate to Python 3 only
2020-10-19 23:57:22 +02:00
Michal Widera
632b653b2b
Fix for subprocess call for Robot Framework execution
...
This change modifies behavior of capture_output flag to work with
robot framework. When set to given parameter it'll set stderr and stdout
to None for subprocess command call.
This fixes problem with error: "UnsupportedOperation: fileno"
Signed-off-by: Michal Widera <michal.widera@idemia.com>
2019-11-07 11:00:59 +01:00
caixisheng
6da2d853fc
Update __init__.py
2019-10-26 15:00:53 +08:00
noname
7c4ac21fb3
Replace deprecated warn with warning
2019-10-10 14:00:18 +03:00
Spikeophant
bcc1321563
Merge pull request #60 from szarya/hotfix/fix_synchronous_flag
...
Move synchrounous pop uphill, so it doesn't end up as a flag in the a…
2019-08-06 16:17:21 -07:00
BNMetrics
f39b7e237e
fixed a bug with var-file argument, allow workspace commands to pass flags and options
2019-06-25 19:53:39 +01:00
Stephan Zaria
7056a853da
Move synchrounous pop uphill, so it doesn't end up as a flag in the actual terraform command
2019-06-10 09:59:40 -07:00
beelit94
a05fc98e8d
Merge pull request #49 from Spikeophant/develop
...
Adding workspace support
2019-06-04 23:17:35 -07:00
DJDavisson
c6d37cbaeb
Removing uncessary comment in __init__.
2019-05-31 11:49:32 -07:00
DJDavisson
35db7917b0
Fixing missing ,
2019-05-31 11:36:53 -07:00
DJDavisson
29daa9c40a
Modifying returns to use proper format.
2019-05-31 11:31:30 -07:00
DJDavisson
70920d828c
Adding workspace deletion.
2019-05-08 10:55:53 -07:00
DJDavisson
01e3dbb05a
Removing optiosn and args pass from state stuff, state stuff doesn't take options or args.
2019-05-07 12:11:28 -07:00
DJDavisson
64e804e7a0
Removing uncessary workspace from __init__ Will add back with some checking in the future.
2019-05-07 09:55:13 -07:00
DJDavisson
0228de1a60
Cleanup.
2019-05-03 14:17:46 -07:00
DJDavisson
749bec79e4
Adding additional workspace items.
2019-05-03 13:59:48 -07:00
DJDavisson
57a80d7e71
Removing working dir.
2019-05-03 13:55:38 -07:00
DJDavisson
05c44c2cdc
Adding workspace support.
2019-05-03 13:54:28 -07:00
John Schoewe
576197d768
Added suffix variable
2019-04-09 22:54:15 -04:00
beelit94
e2b7bd4686
Merge pull request #18 from raquel-ucl/asynch
...
Return access to the subprocess so output can be handled as desired
2018-03-19 18:28:40 -07:00
beelit94
fe0e651607
Merge pull request #27 from waghanza/no_interaction
...
No interaction
2017-11-24 14:36:11 -08:00
Marwan Rabbâa
e9255b118c
add force param to terraform apply
2017-11-24 22:36:44 +01:00
Sam McKelvie
98d221c779
address pull request feedback
2017-10-16 09:12:34 -07:00
Sam McKelvie
99c67e5fe5
Address pull request feedback
2017-10-16 09:03:45 -07:00
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...
2017-10-13 13:36:25 -07:00
beelit94
68954d1447
Merge branch 'develop' into asynch
2017-08-30 11:04:59 -07:00
beelit94
b098b5a1d8
minor refactor
2017-08-30 11:00:15 -07:00
beelit94
86182a604f
add changelog
2017-08-28 11:17:33 -07:00
Austin Page
825fa0e54f
Adding init command and support for backend terraform state files
2017-08-23 11:35:33 -05:00
Raquel Alegre
0b2eb3b1be
Return a reference to the subprocess so output can be handled from elsewhere.
2017-08-11 19:00:06 +01:00
beelit94
4f20dfab75
handle space or special characters in windows & linux
2017-08-08 14:58:33 -07:00
Wythe Lin
8214c6ac61
fix typo
2017-08-02 16:11:54 -07:00
Wythe Lin
966f2d9f64
remove wrong variables
2017-08-02 15:18:11 -07:00
Wythe Lin
5b6f4c133e
add dir_or_plan parameter
2017-08-02 10:59:01 -07:00
Wythe Lin
6fdd205527
remove
2017-08-02 10:29:54 -07:00
Wythe Lin
f7691f7d3c
fix https://github.com/beelit94/python-terraform/issues/12
2017-08-01 17:51:12 -07:00
beelit94
560ff0bc02
output debug message for variables write to temporary file
2017-05-15 11:07:01 +08:00
beelit94
3f18abb40e
fix tests with given environment variables
2017-05-09 16:05:48 +08:00