Fix primary tech in case of single technology image
This commit is contained in:
		
							parent
							
								
									c2e9b1cc18
								
							
						
					
					
						commit
						a4beb9727e
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
					@ -306,7 +306,8 @@ func (c *Container) GetPrimaryTech() (apps.AppTech, error) {
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	return tech, errors.New("wrong number of path parts")
 | 
						// Probably single technology image in case the output is empty
 | 
				
			||||||
 | 
						return tech, nil
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// GetTechs returns all techs available in the container
 | 
					// GetTechs returns all techs available in the container
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue