Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: ceph-objectstore-tool: should import platform before using it #12038

Merged
merged 1 commit into from Nov 17, 2016

Conversation

tchaikov
Copy link
Contributor

Signed-off-by: Kefu Chai kchai@redhat.com

Signed-off-by: Kefu Chai <kchai@redhat.com>
Copy link
Contributor

@oms4suse oms4suse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems to be a good clear bug fix.

@@ -31,7 +31,7 @@ def check_output(*popenargs, **kwargs):
import logging
import json
import tempfile
import io
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

io is definitely not used in this module so +1

@@ -31,7 +31,7 @@ def check_output(*popenargs, **kwargs):
import logging
import json
import tempfile
import io
import platform

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

platform is definitely used so another +1

@@ -1967,7 +1967,7 @@ def main(argv):

def remove_btrfs_subvolumes(path):
if platform.system() == "FreeBSD":
return
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removing trailing whitespace is always good.

@tchaikov tchaikov merged commit 1564943 into ceph:master Nov 17, 2016
@tchaikov
Copy link
Contributor Author

80/153 Test #3: ceph_objectstore_tool.py ................ Passed 262.10 sec

@tchaikov tchaikov deleted the wip-ceph-objectstore-tool branch November 17, 2016 10:14
wkennington pushed a commit to wkennington/ceph that referenced this pull request Dec 7, 2016
Warns about incorrect spacing near 'port' (e.g., 'port = 80').

Fixes issue ceph#12038.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
(cherry picked from commit 93497e5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants