Skip to content

Commit 9fcc4ff

Browse files
jeweecostimuraru
authored andcommitted
removed -module-depth to support terraform 0.12 (#32)
1 parent 350b6a9 commit 9fcc4ff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ops/cli/terraform.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ def run(self, args):
219219
"{terraform_init_command}" \
220220
"{terraform_refresh_command}" \
221221
"terraform plan " \
222-
"-out={plan_file} -refresh=false -module-depth=1 -input=false {vars} {state_argument}".format(
222+
"-out={plan_file} -refresh=false -input=false {vars} {state_argument}".format(
223223
root_dir=self.root_dir,
224224
terraform_path=terraform_path,
225225
terraform_init_command=terraform_init_command,
@@ -269,7 +269,7 @@ def run(self, args):
269269
"{remove_local_cache}" \
270270
"{terraform_init_command}" \
271271
"terraform plan -destroy " \
272-
"-refresh=true -module-depth=1 {vars} {state_argument} && " \
272+
"-refresh=true {vars} {state_argument} && " \
273273
"terraform destroy {vars} {state_argument} -refresh=true".format(
274274
root_dir=self.root_dir,
275275
terraform_path=terraform_path,
@@ -315,7 +315,7 @@ def run(self, args):
315315
state=state_file
316316

317317
cmd = "cd {root_dir}/{terraform_path} && " \
318-
"terraform show -module-depth=-1 {state}".format(
318+
"terraform show {state}".format(
319319
root_dir=self.root_dir,
320320
terraform_path=terraform_path,
321321
state=state

0 commit comments

Comments
 (0)