Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Step:15-SP4
salt.20521
fix-virt.update-with-cpu-defined-263.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fix-virt.update-with-cpu-defined-263.patch of Package salt.20521
From c05d571058b9520dbaf4aba3de001b1aefe8e2c2 Mon Sep 17 00:00:00 2001 From: Cedric Bosdonnat <cbosdonnat@suse.com> Date: Tue, 15 Sep 2020 16:03:30 +0200 Subject: [PATCH] Fix virt.update with cpu defined (#263) In case the cpu was defined the rest of the definition wasn't completely updated. --- salt/modules/virt.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/salt/modules/virt.py b/salt/modules/virt.py index c042738370..c1a73fcb7f 100644 --- a/salt/modules/virt.py +++ b/salt/modules/virt.py @@ -2441,9 +2441,9 @@ def update( data = {k: v for k, v in locals().items() if bool(v)} if boot_dev: data["boot_dev"] = {i + 1: dev for i, dev in enumerate(boot_dev.split())} - need_update = need_update or salt.utils.xmlutil.change_xml( + need_update = salt.utils.xmlutil.change_xml( desc, data, params_mapping - ) + ) or need_update # Update the XML definition with the new disks and diff changes devices_node = desc.find("devices") -- 2.29.2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor