Skip to content

Commit

Permalink
Merge pull request #84 from flux-framework/add-subsystem-field
Browse files Browse the repository at this point in the history
jgf: update edge metadata to include subsystem
  • Loading branch information
vsoch authored Sep 12, 2024
2 parents 33a854a + 8909362 commit 35291fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/fluence/jgf/jgf.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func (g *FluxJGF) MakeEdge(source string, target string, contains string) {
Source: source,
Target: target,
Metadata: edgeMetadata{
Name: map[string]string{containmentKey: contains},
Subsystem: containmentKey,
},
}
g.Graph.Edges = append(g.Graph.Edges, newedge)
Expand Down
2 changes: 1 addition & 1 deletion src/fluence/jgf/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ type edge struct {
}

type edgeMetadata struct {
Name map[string]string `json:"name,omitempty"`
Subsystem string `json:"subsystem,omitempty"`
}

type nodeMetadata struct {
Expand Down

0 comments on commit 35291fe

Please sign in to comment.