Fix error msg in app, role & user decoding
This commit is contained in:
parent
32548fcb6a
commit
efe51b83f4
@ -73,7 +73,7 @@ func (wset *applicationSet) UnmarshalYAML(n *yaml.Node) error {
|
||||
|
||||
func (wrap *application) UnmarshalYAML(n *yaml.Node) (err error) {
|
||||
if !isKind(n, yaml.MappingNode) {
|
||||
return nodeErr(n, "application definition must be a map or scalar")
|
||||
return nodeErr(n, "application definition must be a map")
|
||||
}
|
||||
|
||||
if wrap.res == nil {
|
||||
|
||||
@ -76,7 +76,7 @@ func (wset *roleSet) UnmarshalYAML(n *yaml.Node) error {
|
||||
|
||||
func (wrap *role) UnmarshalYAML(n *yaml.Node) (err error) {
|
||||
if !isKind(n, yaml.MappingNode) {
|
||||
return nodeErr(n, "role definition must be a map or scalar")
|
||||
return nodeErr(n, "role definition must be a map")
|
||||
}
|
||||
|
||||
if wrap.res == nil {
|
||||
|
||||
@ -80,7 +80,7 @@ func (wset *userSet) UnmarshalYAML(n *yaml.Node) error {
|
||||
|
||||
func (wrap *user) UnmarshalYAML(n *yaml.Node) (err error) {
|
||||
if !isKind(n, yaml.MappingNode) {
|
||||
return nodeErr(n, "user definition must be a map or scalar")
|
||||
return nodeErr(n, "user definition must be a map")
|
||||
}
|
||||
|
||||
if wrap.res == nil {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user