mirror of
				https://github.com/karl0ss/homepage.git
				synced 2025-11-04 08:20:58 +00:00 
			
		
		
		
	Better handle malformed docker labels (#2552)
This commit is contained in:
		
							parent
							
								
									ccad62b5c2
								
							
						
					
					
						commit
						aa7cfa58ff
					
				@ -102,6 +102,16 @@ export async function servicesFromDocker() {
 | 
				
			|||||||
            }
 | 
					            }
 | 
				
			||||||
          });
 | 
					          });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					          if (!constructedService.name || !constructedService.group) {
 | 
				
			||||||
 | 
					            logger.error(
 | 
				
			||||||
 | 
					              `Error constructing service using homepage labels for container '${containerName.replace(
 | 
				
			||||||
 | 
					                /^\//,
 | 
				
			||||||
 | 
					                "",
 | 
				
			||||||
 | 
					              )}'. Ensure required labels are present.`,
 | 
				
			||||||
 | 
					            );
 | 
				
			||||||
 | 
					            return null;
 | 
				
			||||||
 | 
					          }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
          return constructedService;
 | 
					          return constructedService;
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user