We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72b34b0 commit daf2f76Copy full SHA for daf2f76
CloudConfig.go
@@ -36,7 +36,7 @@ func (cloudConfig CloudConfig) SaveWriteFiles(outputDir string) error {
36
}
37
38
func ReadCloudConfigFrom(attachment MimeAttachment) (CloudConfig, error) {
39
- if !strings.Contains(attachment.ContentType, "text/cloud-config") ||
+ if !strings.Contains(attachment.ContentType, "text/cloud-config") &&
40
!strings.Contains(string(attachment.Content), "#cloud-config") {
41
return CloudConfig{}, fmt.Errorf("not a cloud-config content type")
42
0 commit comments