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
4ce90f33
Commit
4ce90f33
authored
May 10, 2022
by
Francesc Guasch
Browse files
refactor: fixed for Bionic
parent
1f9cab94
Changes
2
Hide whitespace changes
Inline
Side-by-side
lib/Ravada/Domain/KVM.pm
View file @
4ce90f33
...
...
@@ -2881,6 +2881,10 @@ sub _change_hardware_cpu($self, $index, $data) {
$vcpu
->
appendText
(
$data
->
{
vcpu
}
->
{
_text
});
}
my
(
$cpu
)
=
$doc
->
findnodes
('
/domain/cpu
');
if
(
!
$cpu
)
{
my
(
$domain
)
=
$doc
->
findnodes
('
/domain
');
$cpu
=
$domain
->
addNewChild
(
undef
,'
cpu
');
}
my
$feature
=
delete
$data
->
{
cpu
}
->
{
feature
};
for
my
$field
(
keys
%
{
$data
->
{
cpu
}})
{
...
...
lib/Ravada/Front/Domain/KVM.pm
View file @
4ce90f33
...
...
@@ -174,7 +174,7 @@ sub _sort_xml_list($list, $field) {
}
sub
_xml_elements
($xml, $item) {
confess
if
!
defined
$xml
;
return
{}
if
!
defined
$xml
;
my
$text
=
$xml
->
textContent
;
$item
->
{
_text
}
=
$text
if
$text
&&
$text
!~
/\n/m
;
...
...
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