config/validate: fix line number for header check
This commit is contained in:
parent
d7602f3c08
commit
a5b5c700a6
@ -44,7 +44,7 @@ func Validate(userdataBytes []byte) (Report, error) {
|
|||||||
return validateCloudConfig(userdataBytes, Rules)
|
return validateCloudConfig(userdataBytes, Rules)
|
||||||
default:
|
default:
|
||||||
return Report{entries: []Entry{
|
return Report{entries: []Entry{
|
||||||
Entry{kind: entryError, message: `must be "#cloud-config" or begin with "#!"`},
|
Entry{kind: entryError, message: `must be "#cloud-config" or begin with "#!"`, line: 1},
|
||||||
}}, nil
|
}}, nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user