Skip to content

Commit 69f4176

Browse files
Update lfric_macros/validate_rose_meta.py
Co-authored-by: Cameron Bateman <cameron.bateman@metoffice.gov.uk>
1 parent a863278 commit 69f4176

1 file changed

Lines changed: 2 additions & 9 deletions

File tree

lfric_macros/validate_rose_meta.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -219,15 +219,8 @@ def main():
219219
"line argument"
220220
)
221221

222-
failures = False
223-
224-
if check_rose_metadata(rose_meta_path, source_path):
225-
failures = True
226-
227-
if check_rose_stem_apps(meta_paths, source_path):
228-
failures = True
229-
230-
if failures:
222+
if check_rose_metadata(rose_meta_path, source_path) or
223+
check_rose_stem_apps(meta_paths, source_path):
231224
sys.exit("There were metadata validation failures. See output for details")
232225
print("All metadata successfully validated")
233226

0 commit comments

Comments
 (0)