From a5b5c700a6e21176056b46e88580b8376acccd93 Mon Sep 17 00:00:00 2001 From: Alex Crawford Date: Tue, 18 Nov 2014 12:02:23 -0800 Subject: [PATCH] config/validate: fix line number for header check --- config/validate/validate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/validate/validate.go b/config/validate/validate.go index 150eba4..44b7d82 100644 --- a/config/validate/validate.go +++ b/config/validate/validate.go @@ -44,7 +44,7 @@ func Validate(userdataBytes []byte) (Report, error) { return validateCloudConfig(userdataBytes, Rules) default: 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 } }