Skip to content

Commit

Permalink
Fix flogo list
Browse files Browse the repository at this point in the history
  • Loading branch information
skothari-tibco authored and Frank Martinez committed May 8, 2019
1 parent bb61213 commit af26928
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions api/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func ListContribs(project common.AppProject, jsonFormat bool, filter string) err
continue
}

addContribToList(project, details, specs)
specs = append(specs, getContribSpec(project, details))

}

Expand All @@ -39,7 +39,7 @@ func ListContribs(project common.AppProject, jsonFormat bool, filter string) err
}

if details.ContribDesc.Type == "flogo:function" {
addContribToList(project, details, specs)
specs = append(specs, getContribSpec(project, details))
}
}

Expand Down Expand Up @@ -102,10 +102,10 @@ type ContribSpec struct {
IsLegacy interface{} `json:"isLegacy,omitempty"`
}

func addContribToList(project common.AppProject, details *util.AppImportDetails, specs []*ContribSpec) {
func getContribSpec(project common.AppProject, details *util.AppImportDetails) *ContribSpec {
path, err := project.GetPath(details.Imp)
if err != nil {
return
return nil
}

if Verbose() {
Expand All @@ -129,7 +129,7 @@ func addContribToList(project common.AppProject, details *util.AppImportDetails,
spec.Descriptor = "descriptor.json"
}

specs = append(specs, spec)
return spec
}
func ListOrphanedRefs(project common.AppProject, jsonFormat bool) error {

Expand Down
Binary file added cmd/flogo/flogo
Binary file not shown.

0 comments on commit af26928

Please sign in to comment.