From 8321c3614fed44611e95f4862ac32277431cdea9 Mon Sep 17 00:00:00 2001 From: Martin Atkins Date: Tue, 9 Oct 2018 16:58:41 -0700 Subject: [PATCH] command: Fix TestUntaint_module The untaint command now uses normal resource address syntax to specify the module path, rather than passing it in as a separate argument. --- command/untaint_test.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/command/untaint_test.go b/command/untaint_test.go index 681cb26733..5938955f21 100644 --- a/command/untaint_test.go +++ b/command/untaint_test.go @@ -413,20 +413,21 @@ func TestUntaint_module(t *testing.T) { } args := []string{ - "-module=child", "-state", statePath, - "test_instance.blah", + "module.child.test_instance.blah", } if code := c.Run(args); code != 0 { - t.Fatalf("bad: %d\n\n%s", code, ui.ErrorWriter.String()) + t.Fatalf("command exited with status code %d; want 0\n\n%s", code, ui.ErrorWriter.String()) } testStateOutput(t, statePath, strings.TrimSpace(` test_instance.foo: (tainted) ID = bar + provider = provider.test module.child: test_instance.blah: ID = bar + provider = provider.test `)) }