Skip to content

Commit

Permalink
fix(ldfi): s/runid/run-id/
Browse files Browse the repository at this point in the history
  • Loading branch information
symbiont-stevan-andjelkovic committed Jan 28, 2021
1 parent 4cc13e3 commit ffdad0e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/cli/cmd/scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ var schedulerDownCmd = &cobra.Command{
}

process, err := os.FindProcess(pid)

// TODO(stevan): catch `os: process already finished` and remove
// pid file and exit 0. (And do the same for logger, or better
// yet factor out this code.)
if err != nil {
fmt.Printf("%s\n", err)
os.Exit(1)
Expand Down
2 changes: 1 addition & 1 deletion src/ldfi/ldfi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def load_potential_faults(self, config: Config) -> List[List[Dict]]:
def store(self, event: Event):
meta = json.dumps({"component": "ldfi",
"test-id": event.test_id,
"runid": event.run_id})
"run-id": event.run_id})
data = json.dumps({"faults": json.loads(event.faults)["faults"],
"version": event.version,
"statistics": event.statistics})
Expand Down

0 comments on commit ffdad0e

Please sign in to comment.