Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Ravada-Mirror
Commits
2e030d24
Commit
2e030d24
authored
Dec 19, 2019
by
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/Ravada/VM/KVM.pm
View file @
2e030d24
...
...
@@ -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+$/
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment