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 <jfajerski@suse.com>
(cherry picked from commit
292ae0305db3e48a87db45bcc7ca8cb837a08ead)
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)