Merge pull request #20157 from shinmog/conflictswith

helper/schema: Add "part" to ConflictsWith validation error
pull/22478/head
Radek Simko 7 years ago committed by GitHub
commit ecbfc365a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -762,7 +762,7 @@ func (m schemaMap) internalValidate(topSchemaMap schemaMap, attrsOnly bool) erro
var ok bool
if target, ok = sm[part]; !ok {
return fmt.Errorf("%s: ConflictsWith references unknown attribute (%s)", k, key)
return fmt.Errorf("%s: ConflictsWith references unknown attribute (%s) at part (%s)", k, key, part)
}
if subResource, ok := target.Elem.(*Resource); ok {

Loading…
Cancel
Save