Skip to content

Commit

Permalink
fix: generate success message (#1056)
Browse files Browse the repository at this point in the history
No longer referring to deprecated command.
  • Loading branch information
jon-stewart committed Dec 7, 2022
1 parent 7fbb78f commit 57c282c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ Then, when you run a command, you can specify a `--profile prod` and use the
credentials and settings stored under that name.

```bash
lacework integration list --profile prod
lacework cloud-account list --profile prod
```

If there is no `--profile` option, the CLI will default to the `default` profile.
Expand Down
4 changes: 2 additions & 2 deletions cli/cmd/generate_execute.go
Original file line number Diff line number Diff line change
Expand Up @@ -344,9 +344,9 @@ func provideGuidanceAfterSuccess(workingDir string, laceworkProfile string) stri
fmt.Fprintf(out, "Lacework integration was successful! Terraform code saved in %s\n\n", workingDir)
fmt.Fprintln(out, "To view integration status:")

laceworkCmd := " lacework integration list\n\n"
laceworkCmd := " lacework cloud-account list\n\n"
if laceworkProfile != "" {
laceworkCmd = fmt.Sprintf(" lacework -p %s integration list\n\n", laceworkProfile)
laceworkCmd = fmt.Sprintf(" lacework -p %s cloud-account list\n\n", laceworkProfile)
}
fmt.Fprint(out, laceworkCmd)

Expand Down
4 changes: 2 additions & 2 deletions cli/cmd/generate_terraform_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ func TestGenerationTfExecutionSuccess(t *testing.T) {
assert.Equal(t, `Lacework integration was successful! Terraform code saved in /tmp
To view integration status:
lacework integration list
lacework cloud-account list
`, out)
})
Expand All @@ -216,7 +216,7 @@ To view integration status:
assert.Equal(t, `Lacework integration was successful! Terraform code saved in /tmp
To view integration status:
lacework -p notdefault integration list
lacework -p notdefault cloud-account list
`, out)
})
Expand Down

0 comments on commit 57c282c

Please sign in to comment.