Open stdevel opened 5 years ago
Change proposal: If you make use of Pythons Truth Value Testing the critical code can be simplified:
if len(crit_services) > 0:
Can be written as:
if crit_services:
The length check can be omitted in the same way on most occasions until the length is indeed required.
The benefit of this is that a returned None
will not result in errors.
Describe the bug Verifying maintenance is currently not possible as
katprep_maintenane
crashes:To Reproduce Steps to reproduce the behavior:
katprep_maintenance *.json verify
Expected behavior Maintenance should be verified.
Screenshots If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
Additional context Stacktrace: