diff --git a/cloudinit/config/cc_disk_setup.py b/cloudinit/config/cc_disk_setup.py index f61622720cc..e82ea36b4d3 100644 --- a/cloudinit/config/cc_disk_setup.py +++ b/cloudinit/config/cc_disk_setup.py @@ -1299,7 +1299,9 @@ def mkfs(fs_cfg): device = f"{device}p" device = "%s%s" % (device, partition) if not Path(device).is_block_device(): - LOG.warning("Path %s does not exist or is not a block device") + LOG.warning( + "Path %s does not exist or is not a block device", device + ) return LOG.debug( "Manual request of partition %s for %s", partition, device diff --git a/cloudinit/distros/raspberry_pi_os.py b/cloudinit/distros/raspberry_pi_os.py index 5358b537225..2c71ea57244 100644 --- a/cloudinit/distros/raspberry_pi_os.py +++ b/cloudinit/distros/raspberry_pi_os.py @@ -65,7 +65,7 @@ def apply_locale(self, locale, out_fn=None, keyname="LANG"): ] ) else: - LOG.error("Failed to set locale %s") + LOG.error("Failed to set locale %s", locale) def add_user(self, name, **kwargs) -> bool: """