[pve-devel] [RFC storage] dir: allow a path as is_mountpoint value
Wolfgang Bumiller
w.bumiller at proxmox.com
Fri Jul 28 09:01:09 CEST 2017
On Thu, Jul 27, 2017 at 08:08:42PM +0200, Dietmar Maurer wrote:
> > + return $path if $is_mp =~ m/^(1|on|yes|true)$/i;
> > + return undef if $is_mp =~ m/^(0|off|no|false)$/i;
>
> Don't we have a parse_boolean() helper somewhere? If not, can we
> add one? I would like to avoid multiple definition of what we
> accept for boolean values.
Not yet, but we can put one into PVE::JSONSchema where the above code
exists 3 times separately. Will include it in a v2.
More information about the pve-devel
mailing list