minimum => 0,
optional => 1,
},
- comment => {
- description => "An optional Comment.",
+ notes => {
+ description => "Optional notes. If they contain multiple lines, only the first one is returned here.",
type => 'string',
optional => 1,
},
};
$info->{verification} = $item->{verification} if defined($item->{verification});
- $info->{comment} = $item->{comment} if defined($item->{comment});
+ $info->{notes} = $item->{comment} if defined($item->{comment});
push @$res, $info;
}
use constant COMPRESSOR_RE => 'gz|lzo|zst';
-use constant COMMENT_EXT => ".comment";
+use constant NOTES_EXT => ".notes";
our @COMMON_TAR_FLAGS = qw(
--one-file-system
$info->{vmid} = $vmid // $1;
}
- my $comment_fn = $original.COMMENT_EXT;
- if (-f $comment_fn) {
- my $comment = PVE::Tools::file_read_firstline($comment_fn);
- $info->{comment} = $comment if defined($comment);
+ my $notes_fn = $original.NOTES_EXT;
+ if (-f $notes_fn) {
+ my $notes = PVE::Tools::file_read_firstline($notes_fn);
+ $info->{notes} = $notes if defined($notes);
}
} elsif ($tt eq 'snippets') {