Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Ravada-Mirror
Commits
cfebc62b
Commit
cfebc62b
authored
Dec 01, 2016
by
Francesc Guasch
Browse files
[#71] warn about the error and carry on by now
parent
d87f51aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/Ravada/VM/KVM.pm
View file @
cfebc62b
...
...
@@ -440,7 +440,7 @@ sub _domain_create_from_base {
_xml_modify_video
(
$xml
);
$self
->
_xml_modify_usb
(
$xml
);
$self
->
_fix_slots
();
$self
->
_fix_slots
(
$xml
);
open
my
$out
,'
>
',"
/var/tmp/
$args
{name}.xml
"
or
die
$!
;
print
$out
$xml
->
toString
();
...
...
@@ -713,8 +713,9 @@ sub _fix_slots {
next
if
$node
->
nodeName
ne
'
address
';
my
$slot
=
$node
->
getAttribute
('
slot
');
my
$function
=
$node
->
getAttribute
('
slot
');
next
if
!
defined
$slot
||
!
defined
$function
;
if
(
$slot
{
$slot
}
->
{
$function
})
{
die
"
Conflict of slot
";
warn
"
Conflict of slot
$slot
, function
$function
";
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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