converted tmp_extfs.py to proper salt string format
authorPaul Tonelli <paul.tonelli@logilab.fr>
Thu, 14 Mar 2013 19:52:23 +0100
changeset 80 8b298d36c41b
parent 79 07d85619353a
child 81 55f06c0e278c
converted tmp_extfs.py to proper salt string format
_modules/tmp_extfs.py
--- a/_modules/tmp_extfs.py	Fri Mar 15 09:43:42 2013 +0100
+++ b/_modules/tmp_extfs.py	Thu Mar 14 19:52:23 2013 +0100
@@ -6,11 +6,11 @@
 log = logging.getLogger(__name__)
 
 def resize(name, size='', options=''):
-    return __salt__['cmd.run_all']('resize2fs -f '+ options + ' ' + name + ' '
-            + size)
+    return __salt__['cmd.run_all']('resize2fs -f {0} {1} {2}'.format(options,
+        name, size))
 
 def fsck(name, options=''):
-    return __salt__['cmd.run_all']('e2fsck -n -f ' + name)
+    return __salt__['cmd.run_all']('e2fsck -n -f {0}'.format(name))
 
 def _has_enough_free_space(fs, space):
     info = os.statvfs(fs)