Commit 2e030d24 authored by eskumon's avatar eskumon
Browse files

fix(frontend): Improve users management in admin

   Modifies the regex to allow float values on the disk size

    fixes #1150 & #1154
parent f8fd524f
......@@ -680,7 +680,7 @@ sub create_volume {
confess "ERROR: Unknown args ".Dumper(\%args) if keys %args;
confess "Invalid size" if defined $size && ( $size == 0 || $size !~ /^\d+$/);
confess "Invalid size" if defined $size && ( $size == 0 || $size !~ /^\d+(\.\d+)?$/);
confess "Invalid capacity"
if defined $capacity && ( $capacity == 0 || $capacity !~ /^\d+$/);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment