From: Dan Mick Date: Tue, 17 Apr 2018 01:37:30 +0000 (-0700) Subject: Fix mixing of format() and %-interpolation X-Git-Tag: v13.1.0~168^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=9e9a07c9ae41cc72e587dfd6551fd83389cc35e6;p=ceph.git Fix mixing of format() and %-interpolation Signed-off-by: Dan Mick --- diff --git a/src/ceph-volume/ceph_volume/api/lvm.py b/src/ceph-volume/ceph_volume/api/lvm.py index 08d64ffaff89..328b887d09ba 100644 --- a/src/ceph-volume/ceph_volume/api/lvm.py +++ b/src/ceph-volume/ceph_volume/api/lvm.py @@ -217,7 +217,7 @@ def remove_vg(vg_name): """ Removes a volume group. """ - fail_msg = "Unable to remove vg %s".format(vg_name) + fail_msg = "Unable to remove vg %s" % vg_name process.run( [ 'vgremove', @@ -233,7 +233,7 @@ def remove_pv(pv_name): """ Removes a physical volume. """ - fail_msg = "Unable to remove vg %s".format(pv_name) + fail_msg = "Unable to remove vg %s" % pv_name process.run( [ 'pvremove', @@ -263,7 +263,7 @@ def remove_lv(path): terminal_verbose=True, ) if returncode != 0: - raise RuntimeError("Unable to remove %s".format(path)) + raise RuntimeError("Unable to remove %s" % path) return True