mirror of
https://github.com/nchevsky/systemrescue-zfs.git
synced 2026-04-05 06:15:14 +00:00
fix error handling when setting sysctl via yaml config
This commit is contained in:
parent
87e2abb28e
commit
61576de220
1 changed files with 1 additions and 1 deletions
|
|
@ -334,7 +334,7 @@ if 'sysconfig' in config and 'sysctl' in config['sysconfig'] and \
|
|||
|
||||
# pipe config into sysctl
|
||||
p = subprocess.run(["sysctl", "--load=-"], text=True, input=sysctllines)
|
||||
if p.returncode is not 0:
|
||||
if p.returncode != 0:
|
||||
print (f"Some or all sysctl options couldn't be set")
|
||||
errcnt+=1
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue