Skip to content

Commit

Permalink
Fix bug in spec parser
Browse files Browse the repository at this point in the history
  • Loading branch information
Romero027 committed May 4, 2024
1 parent 7a886a5 commit 013e724
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/controller/spec_parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ func ConvertToAppNetSpec(appName, backend, appManifestFile, clientService, serve
// All ambinet elements are considered to be on the server-side
if backend == "ambient" {
position = "S"
} else {
position = "C"
}
for _, element := range clientChain {
appManifest.Edge[clientServerTag] = append(appManifest.Edge[clientServerTag], EdgeElementItem{
Expand Down Expand Up @@ -78,6 +80,8 @@ func ConvertToAppNetSpec(appName, backend, appManifestFile, clientService, serve
// All ambinet elements are considered to be on the server-side
if backend == "ambient" {
position = "S"
} else {
position = "C/S"
}
for _, element := range anyChain {
appManifest.Edge[clientServerTag] = append(appManifest.Edge[clientServerTag], EdgeElementItem{
Expand Down

0 comments on commit 013e724

Please sign in to comment.