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
70cc9ddd
Unverified
Commit
70cc9ddd
authored
Mar 26, 2018
by
bryanl
Browse files
handle jsonnet ast.ApplyBrace in env files
Signed-off-by:
bryanl
<
bryanliles@gmail.com
>
parent
b2f83388
Changes
1
Hide 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 @
70cc9ddd
...
...
@@ -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