[blivet] Remove extra quotes from the xfs_db arguments.

David Shea dshea at redhat.com
Mon May 19 13:49:36 UTC 2014


The argument list is passed straight into subprocess.Popen and not
interpreted by a shell, so quotes within the arguments are not needed.
---
 blivet/formats/fs.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/blivet/formats/fs.py b/blivet/formats/fs.py
index 5237246..426adcb 100644
--- a/blivet/formats/fs.py
+++ b/blivet/formats/fs.py
@@ -1225,8 +1225,8 @@ class XFS(FS):
     _supported = True
     _packages = ["xfsprogs"]
     _infofs = "xfs_db"
-    _defaultInfoOptions = ["-c", "\"sb 0\"", "-c", "\"p dblocks\"",
-                           "-c", "\"p blocksize\""]
+    _defaultInfoOptions = ["-c", "sb 0", "-c", "p dblocks",
+                           "-c", "p blocksize"]
     _existingSizeFields = ["dblocks =", "blocksize ="]
     partedSystem = fileSystemType["xfs"]
 
-- 
1.9.0



More information about the anaconda-patches mailing list