Skip to content

Commit

Permalink
chg: [main] create_case returns case dict instead of only case_id
Browse files Browse the repository at this point in the history
  • Loading branch information
cvandeplas committed Sep 5, 2024
1 parent 165c52c commit 01df841
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sysdiagnose.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def main():
case_id = args.case_id
sd.create_case(filename, force, case_id)
else:
case_id = sd.create_case(filename, force)
case_id = sd.create_case(filename, force)['case_id']
except Exception as e:
exit(f"Error creating case: {str(e)}")

Expand Down Expand Up @@ -349,7 +349,7 @@ def create_case(self, sysdiagnose_file: str, force: bool = False, case_id: bool

print("Sysdiagnose file has been processed")
print(f"Case ID: {str(case['case_id'])}")
return case['case_id']
return case

def parse(self, parser: str, case_id: str):
# Load parser module
Expand Down

0 comments on commit 01df841

Please sign in to comment.