Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Terraform
Commits
968f4226
Unverified
Commit
968f4226
authored
3 years ago
by
megan07
Committed by
GitHub
3 years ago
Browse files
Options
Download
Plain Diff
Merge pull request #29753 from hashicorp/megan_update_msg
update error message for invalid json
parents
765bff1d
9b9b26a3
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
internal/backend/remote-state/gcs/backend.go
+1
-1
internal/backend/remote-state/gcs/backend.go
with
1 addition
and
1 deletion
+1
-1
internal/backend/remote-state/gcs/backend.go
+
1
-
1
View file @
968f4226
...
...
@@ -143,7 +143,7 @@ func (b *Backend) configure(ctx context.Context) error {
}
if
!
json
.
Valid
([]
byte
(
contents
))
{
return
fmt
.
Errorf
(
"
contents of credentials are invalid json
"
)
return
fmt
.
Errorf
(
"
the string provided in credentials is neither valid json nor a valid file path
"
)
}
credOptions
=
append
(
credOptions
,
option
.
WithCredentialsJSON
([]
byte
(
contents
)))
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help