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
534c76bc
Commit
534c76bc
authored
Sep 28, 2021
by
Francesc Guasch
Browse files
refactor(backend): fixed recent request warning
parent
2a682839
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/Ravada.pm
View file @
534c76bc
...
...
@@ -4443,8 +4443,8 @@ sub _cmd_set_driver {
sub
_cmd_refresh_storage
($self, $request=undef) {
if
(
$request
&&
(
my
$
id_
recent
=
$request
->
done_recently
(
60
)))
{
die
"
Command
"
.
$request
->
command
.
"
run recently by
$id_
recent
.
\n
";
if
(
$request
&&
(
my
$recent
=
$request
->
done_recently
(
60
)))
{
die
"
Command
"
.
$request
->
command
.
"
run recently by
"
.
$
recent
->
id
.
"
\n
";
}
my
$vm
;
if
(
$request
&&
$request
->
defined_arg
('
id_vm
'))
{
...
...
@@ -4558,8 +4558,8 @@ sub _cmd_domain_autostart($self, $request ) {
sub
_cmd_refresh_vms
($self, $request=undef) {
if
(
$request
&&
!
$request
->
defined_arg
('
_force
')
&&
(
my
$
id_
recent
=
$request
->
done_recently
(
30
)))
{
die
"
Command
"
.
$request
->
command
.
"
run recently by
$id_
recent
.
\n
";
if
(
$request
&&
!
$request
->
defined_arg
('
_force
')
&&
(
my
$recent
=
$request
->
done_recently
(
30
)))
{
die
"
Command
"
.
$request
->
command
.
"
run recently by
"
.
$
recent
->
id
.
"
\n
";
}
$self
->
_refresh_disabled_nodes
(
$request
);
...
...
@@ -5421,8 +5421,8 @@ sub _user_is_admin($self, $id_user) {
sub
_enforce_limits_active
($self, $request) {
confess
if
!
$request
;
if
(
my
$
id_
recent
=
$request
->
done_recently
(
30
))
{
die
"
Command
"
.
$request
->
command
.
"
run recently by
$id_
recent
.
\n
";
if
(
my
$recent
=
$request
->
done_recently
(
30
))
{
die
"
Command
"
.
$request
->
command
.
"
run recently by
"
.
$
recent
->
id
.
"
\n
";
}
my
$timeout
=
(
$request
->
defined_arg
('
timeout
')
or
10
);
my
$start_limit_default
=
$self
->
setting
('
/backend/start_limit
');
...
...
Write
Preview
Markdown
is supported
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