Skip to content
This repository has been archived by the owner on Feb 9, 2024. It is now read-only.

Commit

Permalink
Use the dependency iteration APIs to query packages/applications
Browse files Browse the repository at this point in the history
  • Loading branch information
a-palchikov committed Sep 1, 2020
1 parent cf5bd79 commit 8ab796f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion e
Submodule e updated from a429eb to 6ec046
12 changes: 6 additions & 6 deletions lib/app/service/app.go
Expand Up @@ -905,9 +905,9 @@ func (r *applications) checkImportRequirements(manifest *schema.Manifest, req *a
req.PackageVersion = manifest.Metadata.ResourceVersion
}

// check dependencies-packages
for _, dep := range manifest.Dependencies.Packages {
locator, err := r.processMetadata(dep.Locator)
// check package dependencies
for _, dep := range manifest.Dependencies.GetPackages() {
locator, err := r.processMetadata(dep)
if err != nil {
return trace.Wrap(err)
}
Expand All @@ -920,9 +920,9 @@ func (r *applications) checkImportRequirements(manifest *schema.Manifest, req *a
}
}

// check dependencies-apps
for _, dep := range manifest.Dependencies.Apps {
locator, err := r.processMetadata(dep.Locator)
// check application dependencies
for _, dep := range manifest.Dependencies.GetApps() {
locator, err := r.processMetadata(dep)
if err != nil {
return trace.Wrap(err)
}
Expand Down

0 comments on commit 8ab796f

Please sign in to comment.