From: Jan Fajerski Date: Mon, 6 Apr 2020 08:51:27 +0000 (+0200) Subject: devices/simple/scan: Fix string in log statement X-Git-Tag: v16.1.0~2679^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=292ae0305db3e48a87db45bcc7ca8cb837a08ead;p=ceph.git devices/simple/scan: Fix string in log statement A multiline string enclosed by () gained a comma, making it into a tuple, which has no format() method. Fixes: https://tracker.ceph.com/issues/44949 Signed-off-by: Jan Fajerski --- diff --git a/src/ceph-volume/ceph_volume/devices/simple/scan.py b/src/ceph-volume/ceph_volume/devices/simple/scan.py index 6e41f76ecb19..1e3deae4ce1e 100644 --- a/src/ceph-volume/ceph_volume/devices/simple/scan.py +++ b/src/ceph-volume/ceph_volume/devices/simple/scan.py @@ -103,8 +103,9 @@ class Scan(object): file_json_key = file_ if file_.endswith('_dmcrypt'): file_json_key = file_.rstrip('_dmcrypt') - logger.info(('reading file {}, stripping _dmcrypt', - 'suffix').format(file_)) + logger.info( + 'reading file {}, stripping _dmcrypt suffix'.format(file_) + ) if os.path.islink(file_path): if os.path.exists(file_path): osd_metadata[file_json_key] = self.scan_device(file_path)