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
3733bf6b
Commit
3733bf6b
authored
Sep 23, 2016
by
Francesc Guasch
Browse files
show status when creating
parent
0141fb1f
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/Ravada.pm
View file @
3733bf6b
...
...
@@ -176,6 +176,10 @@ sub create_domain {
my
$vm_name
=
$args
{
vm
};
delete
$args
{
vm
};
my
$request
=
$args
{
request
}
if
$args
{
request
};
$request
->
status
("
Searching for VM
")
if
$request
;
sleep
5
;
my
$vm
=
$self
->
vm
->
[
0
];
$vm
=
$self
->
search_vm
(
$vm_name
)
if
$vm_name
;
...
...
@@ -184,6 +188,8 @@ sub create_domain {
if
!
$vm_name
;
confess
"
I can't find any vm
"
.
Dumper
(
$self
->
vm
)
if
!
$vm
;
$request
->
status
("
creating domain in
"
.
ref
(
$vm
));
return
$vm
->
create_domain
(
@
_
);
}
...
...
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