Skip to content

Commit 5ee0284

Browse files
Reword to not mention backward-compat in comment
Co-authored-by: Simon Baird <[email protected]>
1 parent 7e3e4ad commit 5ee0284

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal/applicationsnapshot/input.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,8 @@ func readSnapshotSource(input []byte) (app.SnapshotSpec, error) {
195195
return *wrapper.Spec, nil
196196
}
197197

198-
// Fallback: unmarshal directly into SnapshotSpec for backward compatibility
198+
// If we didn't find a snapshot under the .spec top level key then
199+
// assume we're looking at the bare snapshot data
199200
var spec app.SnapshotSpec
200201
if err := yaml.Unmarshal(input, &spec); err != nil {
201202
log.Debugf("Problem parsing application snapshot from file %s", input)

0 commit comments

Comments
 (0)