[lvm-devel] master - dbus: Add --yes when --setphysicalvolumesize is used

Marian Csontos mcsontos at sourceware.org
Tue May 2 06:49:16 UTC 2017


Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=7da13bbf7baf161d275cc14fe1e5c97c50229e60
Commit:        7da13bbf7baf161d275cc14fe1e5c97c50229e60
Parent:        15eaf703fcfc548ff687a07002f35b06f9fd8c7d
Author:        Marian Csontos <mcsontos at redhat.com>
AuthorDate:    Fri Apr 28 16:47:58 2017 +0200
Committer:     Marian Csontos <mcsontos at redhat.com>
CommitterDate: Tue May 2 08:42:21 2017 +0200

dbus: Add --yes when --setphysicalvolumesize is used

---
 daemons/lvmdbusd/cmdhandler.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/daemons/lvmdbusd/cmdhandler.py b/daemons/lvmdbusd/cmdhandler.py
index 94c3f59..8ed38cb 100644
--- a/daemons/lvmdbusd/cmdhandler.py
+++ b/daemons/lvmdbusd/cmdhandler.py
@@ -553,7 +553,7 @@ def pv_resize(device, size_bytes, create_options):
 	cmd.extend(options_to_cli_args(create_options))
 
 	if size_bytes != 0:
-		cmd.extend(['--setphysicalvolumesize', str(size_bytes) + 'B'])
+		cmd.extend(['--yes', '--setphysicalvolumesize', str(size_bytes) + 'B'])
 
 	cmd.extend([device])
 	return call(cmd)




More information about the lvm-devel mailing list