Resolves: RHEL-58465 - package rhel-system-roles.noarch does not provide docs for ansible-doc [rhel-8.10.z] Resolves: RHEL-58494 ad_integration - fix: Sets domain name lower case in realmd.conf section header [rhel-8.10.z] Resolves: RHEL-58917 bootloader - bootloader role tests do not work on ostree [rhel-8.10.z] Resolves: RHEL-45711 bootloader - fix: Set user.cfg path to /boot/grub2/ on EL 9 UEFI [rhel-8] Resolves: RHEL-58515 cockpit - cockpit install all wildcard match does not work in newer el9 [rhel-8.10.z] Resolves: RHEL-58485 logging - RFE - system-roles - logging: Add truncate options for local file inputs [rhel-8.10.z] Resolves: RHEL-58481 logging - redhat.rhel_system_roles.logging role fails to process logging_outputs: of type: "custom" [rhel-8.10.z] Resolves: RHEL-58477 logging - [RFE] Add the umask settings or enable a variable in linux-system-roles.logging [rhel-8.10.z] Resolves: RHEL-37550 logging - Setup imuxsock using rhel-system-roles.logging causing an error EL8 Resolves: RHEL-58519 nbde_client - feat: Allow initrd configuration to be skipped [rhel-8.10.z] Resolves: RHEL-58525 podman - fix: proper cleanup for networks; ensure cleanup of resources [rhel-8.10.z] Resolves: RHEL-58511 podman - fix: grab name of network to remove from quadlet file [rhel-8.10.z] Resolves: RHEL-58507 podman - Create podman secret when skip_existing=True and it does not exist [rhel-8.10.z] Resolves: RHEL-58503 podman - fix: do not use become for changing hostdir ownership, and expose subuid/subgid info [rhel-8.10.z] Resolves: RHEL-58498 podman - fix: use correct user for cancel linger file name [rhel-8.10.z] Resolves: RHEL-58460 podman - redhat.rhel_system_roles.podman fails to configure and run containers with podman rootless using different username and groupname. [rhel-8.10.z] Resolves: RHEL-58473 sshd - second SSHD service broken [rhel-8.10.z] Resolves: RHEL-58469 storage - rhel-system-role.storage is not idempotent [rhel-8.10.z] Resolves: RHEL-58489 timesync - System Roles: No module documentation [rhel-8.10.z] (cherry picked from commit 350d523452546e35bb0805af9ad9cc74712899d7)
42 lines
1.5 KiB
Diff
42 lines
1.5 KiB
Diff
From 705a9db65a230013a9118481082d2bb548cd113d Mon Sep 17 00:00:00 2001
|
|
From: Vojtech Trefny <vtrefny@redhat.com>
|
|
Date: Fri, 31 May 2024 06:31:52 +0200
|
|
Subject: [PATCH 06/10] fix: Fix 'possibly-used-before-assignment' pylint
|
|
issues (#440)
|
|
|
|
Latest pylint added a new check for values used before assignment.
|
|
This fixes these issues found in the blivet module. Some of these
|
|
are false positives, some real potential issues.
|
|
|
|
(cherry picked from commit bfaae50586681bb4b0fcad5df6f6adde2b7c8502)
|
|
---
|
|
library/blivet.py | 5 +++++
|
|
1 file changed, 5 insertions(+)
|
|
|
|
diff --git a/library/blivet.py b/library/blivet.py
|
|
index d82b86b..a6715d9 100644
|
|
--- a/library/blivet.py
|
|
+++ b/library/blivet.py
|
|
@@ -642,6 +642,9 @@ class BlivetVolume(BlivetBase):
|
|
self._device = None
|
|
return # TODO: see if we can create this device w/ the specified name
|
|
|
|
+ # pylint doesn't understand that "luks_fmt" is always set when "encrypted" is true
|
|
+ # pylint: disable=unknown-option-value
|
|
+ # pylint: disable=possibly-used-before-assignment
|
|
def _update_from_device(self, param_name):
|
|
""" Return True if param_name's value was retrieved from a looked-up device. """
|
|
log.debug("Updating volume settings from device: %r", self._device)
|
|
@@ -1717,6 +1720,8 @@ class BlivetLVMPool(BlivetPool):
|
|
|
|
if auto_size_dev_count > 0:
|
|
calculated_thinlv_size = available_space / auto_size_dev_count
|
|
+ else:
|
|
+ calculated_thinlv_size = available_space
|
|
|
|
for thinlv in thinlvs_to_create:
|
|
|
|
--
|
|
2.46.0
|
|
|