File 0002-low-bootstrap-Fix-warning-for-formatting-SBD-device-.patch of Package crmsh
From 4c892429494031ed45f8cc36df714f58cc2cdd43 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Kristoffer=20Gr=C3=B6nlund?= <krig@koru.se>
Date: Thu, 9 Mar 2017 20:27:19 +0100
Subject: [PATCH] low: bootstrap: Fix warning for formatting SBD device
(bsc#1028704)
---
crmsh/bootstrap.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/crmsh/bootstrap.py b/crmsh/bootstrap.py
index 2b2e167a..2fec7dbf 100644
--- a/crmsh/bootstrap.py
+++ b/crmsh/bootstrap.py
@@ -940,8 +940,8 @@ Configure SBD:
if not is_block_device(dev):
print >>sys.stderr, " That doesn't look like a block device"
else:
- status("All data on $dev will be destroyed")
- if confirm('Are you sure you wish to use this device'):
+ warn("All data on {} will be destroyed!".format(dev))
+ if confirm('Are you sure you wish to use this device?'):
dev_looks_sane = True
else:
dev = ""
--
2.12.0