suggestion from review

This commit is contained in:
Michael Hudson-Doyle 2023-06-30 16:43:01 +12:00
parent 0f78185b9a
commit 64ad6514a3
1 changed files with 3 additions and 3 deletions

View File

@ -78,10 +78,10 @@ class StorageChecker:
def main():
storage_checker = StorageChecker()
final_checks = True
root_mount = True
if sys.argv[1:2] == ['--no-root-mount']:
final_checks = False
root_mount = False
sys.argv.pop(1)
actions = []
@ -96,7 +96,7 @@ def main():
print('checking {} failed'.format(action))
raise
if final_checks:
if root_mount:
storage_checker.final_checks()