Files
virt-manager/003-virtinst-cloudinit-include-empty-meta-data-file.patch
Charles Arnold 2da9b6a6ef - Upstream features and bug fixes (bsc#1027942) (jsc#PED-14625)
003-virtinst-cloudinit-include-empty-meta-data-file.patch
  009-avoid-NoneType-pixbuf.patch
  012-virtManager-wrapped-details-hw-panel-with-GtkScrolledWindow.patch
  013-virtinst-interface-add-support-for-backend.hostname-and-backend.fqdn.patch
  014-virtinst-add-support-for-acpi-generic-initiator.patch
  015-virtinst-add-support-for-pcihole64.patch
  017-maint-use-constants-instead-of-strings-for-boot-devices.patch
  018-virtinst-rework-get_boot_order.patch
  019-virtinst-guest-introduce-can_use_device_boot_order.patch
  020-virtinst-remove-legacy-attribute-from-set_boot_order-get_boot_order.patch
  021-installer-add-support-to-use-device-boot-order.patch
  024-virtinst-Fix-XDG_DATA_HOME-handling.patch
- Dropped virtinst-fix-XDG_DATA_HOME-handling.patch

OBS-URL: https://build.opensuse.org/package/show/Virtualization/virt-manager?expand=0&rev=738
2026-01-07 21:43:42 +00:00

26 lines
911 B
Diff

Subject: virtinst: cloudinit: include empty meta-data file
From: Pavel Hrdina phrdina@redhat.com Mon Sep 29 16:14:35 2025 +0200
Date: Wed Oct 1 06:38:27 2025 -0400:
Git: ea71cf9a8a4161ce6e19eacf5f0d86d40ab74f23
Refactor creation of cloud-init config files introduced a bug where we
stopped including empty meta-data file.
Introduced-by: 5b2d0997a1d2d213b17c227169da64e2fa7d09a6
Fixes: https://github.com/virt-manager/virt-manager/issues/975
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
diff --git a/virtinst/install/cloudinit.py b/virtinst/install/cloudinit.py
index 3f565f399..b2378fbfa 100644
--- a/virtinst/install/cloudinit.py
+++ b/virtinst/install/cloudinit.py
@@ -36,7 +36,7 @@ class _CloudInitConfig:
def _create_file(self):
content = self._content()
- if not content:
+ if content is None:
return None
fileobj = tempfile.NamedTemporaryFile(