]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
test: ceph-objectstore-tool: should import platform before using it 12038/head
authorKefu Chai <kchai@redhat.com>
Thu, 17 Nov 2016 09:20:57 +0000 (17:20 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 17 Nov 2016 09:20:57 +0000 (17:20 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/test/ceph_objectstore_tool.py

index c0faafe7023aa4fab0e8a17042f4ab246a8d3627..02b0dc5151dd939757097a144b98c22337fa39ee 100755 (executable)
@@ -31,7 +31,7 @@ import re
 import logging
 import json
 import tempfile
-import io
+import platform
 
 try:
     from subprocess import DEVNULL
@@ -1967,7 +1967,7 @@ def main(argv):
 
 def remove_btrfs_subvolumes(path):
     if platform.system() == "FreeBSD":
-        return 
+        return
     result = subprocess.Popen("stat -f -c '%%T' %s" % path, shell=True, stdout=subprocess.PIPE)
     for line in result.stdout:
         filesystem = decode(line).rstrip('\n')