Merge pull request #258 from crawford/header
config/validate: fix line number for header check
This commit is contained in:
commit
b621756d92
@ -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