File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 99from ceph_devstack .resources .ceph import CephDevStack
1010
1111
12- def main ():
12+ def main (): # noqa: C901
1313 args = parse_args (sys .argv [1 :])
1414 config .load (args .config_file )
1515 if args .verbose :
Original file line number Diff line number Diff line change @@ -99,9 +99,7 @@ async def check_selinux_bool(self, name: str):
9999 proc = await host .arun (["getsebool" , name ])
100100 assert proc .stdout is not None
101101 out = await proc .stdout .read ()
102- if out .decode ().strip () != f"{ name } --> on" :
103- return False
104- return True
102+ return out .decode ().strip () != f"{ name } --> on"
105103
106104 async def get_sysctl_value (self , name : str ) -> int :
107105 proc = await host .arun (["sysctl" , "-b" , name ])
Original file line number Diff line number Diff line change 1+ [lint ]
2+ extend-select = [" B" , " C" , " SIM" ]
You can’t perform that action at this time.
0 commit comments