Skip to content

Commit

Permalink
Merge pull request #351 from subutai-io/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
crioto authored Apr 27, 2018
2 parents 8025a89 + de3197a commit d4b3564
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions template/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,10 @@ func isParentExist(templateData *download.ListItem) (bool, string) {
list := db.Search(templateData.Parent)
for _, id := range list {
item := download.FormatItem(db.Info(id), "template")
if len(item.Owner) == 0 {
log.Info("Missing template owner")
continue
}
if item.Name == templateData.Parent && item.Owner[0] == templateData.ParentOwner &&
item.Version == templateData.ParentVersion {
return true, ""
Expand Down

0 comments on commit d4b3564

Please sign in to comment.