cloudinit: trim trailing whitespaces in #cloud-config header

This commit is contained in:
kayrus
2015-08-28 12:38:47 +02:00
parent 9c4aca6c9a
commit f92dcb7968
2 changed files with 4 additions and 5 deletions

View File

@@ -47,7 +47,7 @@ func TestParseHeaderCRLF(t *testing.T) {
}
func TestParseConfigCRLF(t *testing.T) {
contents := "#cloud-config\r\nhostname: foo\r\nssh_authorized_keys:\r\n - foobar\r\n"
contents := "#cloud-config \r\nhostname: foo\r\nssh_authorized_keys:\r\n - foobar\r\n"
ud, err := ParseUserData(contents)
if err != nil {
t.Fatalf("Failed parsing config: %v", err)