]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
tasks/cephfs: test_pool_perm whitespace
authorJohn Spray <john.spray@redhat.com>
Mon, 27 Jul 2015 22:18:23 +0000 (23:18 +0100)
committerJohn Spray <john.spray@redhat.com>
Tue, 28 Jul 2015 09:34:57 +0000 (10:34 +0100)
PEP8-ize.

Signed-off-by: John Spray <john.spray@redhat.com>
tasks/cephfs/test_pool_perm.py

index 0d3b5eb80f73efa9aad487c961d6539f150c8638..97afdaa298270088c1d7233e6469e2431be4dcc9 100644 (file)
@@ -1,13 +1,13 @@
-
 from textwrap import dedent
 from tasks.cephfs.cephfs_test_case import CephFSTestCase
 import os
 
+
 class TestPoolPerm(CephFSTestCase):
     def test_pool_perm(self):
         self.mount_a.run_shell(["touch", "test_file"])
 
-       file_path = os.path.join(self.mount_a.mountpoint, "test_file")
+        file_path = os.path.join(self.mount_a.mountpoint, "test_file")
 
         remote_script = dedent("""
             import os
@@ -27,7 +27,8 @@ class TestPoolPerm(CephFSTestCase):
             """)
 
         # set data pool read only
-        self.fs.mon_manager.raw_cluster_cmd_result('auth', 'caps', 'client.0', 'mon', 'allow r', 'osd', 'allow r pool=data')
+        self.fs.mon_manager.raw_cluster_cmd_result('auth', 'caps', 'client.0', 'mon', 'allow r', 'osd',
+                                                   'allow r pool=data')
 
         self.mount_a.umount_wait()
         self.mount_a.mount()
@@ -37,7 +38,8 @@ class TestPoolPerm(CephFSTestCase):
         self.mount_a.run_python(remote_script.format(path=file_path, check_read=str(False)))
 
         # set data pool write only
-        self.fs.mon_manager.raw_cluster_cmd_result('auth', 'caps', 'client.0', 'mon', 'allow r', 'osd', 'allow w pool=data')
+        self.fs.mon_manager.raw_cluster_cmd_result('auth', 'caps', 'client.0', 'mon', 'allow r', 'osd',
+                                                   'allow w pool=data')
 
         self.mount_a.umount_wait()
         self.mount_a.mount()