On 07.07.20 08:36, Fabian Grünbichler wrote: > On June 4, 2020 11:08 am, Fabian Ebner wrote: >> @@ -43,6 +43,54 @@ cfs_register_file ('storage.cfg', >> sub { __PACKAGE__->parse_config(@_); }, >> sub { __PACKAGE__->write_config(@_); }); >> >> +my %prune_option = ( >> + optional => 1, >> + type => 'number', minimum => '1', > > shouldn't this be type 'integer'? > > I am not sure whether minimum '1' is a good choice - what if I want to > explicitly disable a certain keep-* option instead of just keeping it > blank? also see next patch..
mirrors the exact PBS behavior, you do not have to sent it but once you do it has to be >= 1 - makes sense for such an option, what would setting week to 0 mean? integer makes sense to me, though. _______________________________________________ pve-devel mailing list pve-devel@pve.proxmox.com https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel