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
Conversation
Signed-off-by: Kefu Chai <kchai@redhat.com>
There was a problem hiding this 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 |
There was a problem hiding this comment.
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 | |||
|
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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.
|
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)
Signed-off-by: Kefu Chai kchai@redhat.com