[rhel7-branch 1/5] devicelibs.lvm: fix pvmove(src, dest=DESTPATH)
wgwoods
installerbot-noreply at redhat.com
Thu Oct 8 17:17:40 UTC 2015
From: Will Woods <wwoods at redhat.com>
args.extend(str) will treat the str as iterable and append each
individual character to args; should be args.append(str).
(cherry picked from commit 0a3bf71fb5c5181e5dde0f03189a9015a9bfd41e)
Related: rhbz#1269144
---
blivet/devicelibs/lvm.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/blivet/devicelibs/lvm.py b/blivet/devicelibs/lvm.py
index 3d1bf71..00c5ec2 100644
--- a/blivet/devicelibs/lvm.py
+++ b/blivet/devicelibs/lvm.py
@@ -281,7 +281,7 @@ def pvmove(source, dest=None):
"""
args = ["pvmove"] + _getConfigArgs() + [source]
if dest:
- args.extend(dest)
+ args.append(dest)
try:
lvm(args)
--
To view this commit on github, visit https://github.com/rhinstaller/blivet/commit/f210d56e0d6c7aaf676ce59d88ce59d298aba7d9
More information about the anaconda-patches
mailing list