Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Ijaz Ahmad
ksonnet
Commits
45553db4
Unverified
Commit
45553db4
authored
Mar 26, 2018
by
Bryan Liles
Committed by
GitHub
Mar 26, 2018
Browse files
Merge pull request #389 from bryanl/bug-snippet-jsonnet-10
handle jsonnet ast.ApplyBrace in env files
parents
b2f83388
70cc9ddd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
metadata/params/params.go
metadata/params/params.go
+2
-0
No files found.
metadata/params/params.go
View file @
45553db4
...
...
@@ -63,6 +63,8 @@ func findComponentsObj(node ast.Node) (*ast.Object, error) {
}
}
return
nil
,
fmt
.
Errorf
(
"Invalid params schema -- there must be a top-level object '%s'"
,
componentsID
)
case
*
ast
.
ApplyBrace
:
return
findComponentsObj
(
n
.
Right
)
}
return
nil
,
fmt
.
Errorf
(
"Invalid params schema -- did not expect node type: %T"
,
node
)
}
...
...
Write
Preview
Markdown
is supported
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