a
This commit is contained in:
		
					parent
					
						
							
								d386010b80
							
						
					
				
			
			
				commit
				
					
						75f3b82ed7
					
				
			
		
					 1 changed files with 4 additions and 1 deletions
				
			
		
							
								
								
									
										5
									
								
								main.py
									
										
									
									
									
								
							
							
						
						
									
										5
									
								
								main.py
									
										
									
									
									
								
							| 
						 | 
					@ -16,7 +16,10 @@ logging.basicConfig(
 | 
				
			||||||
    datefmt="%d-%b-%y %H:%M:%S",
 | 
					    datefmt="%d-%b-%y %H:%M:%S",
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
client = Etcd3Wrapper(host=config("ETCD_URL"), user="root", password=config("ETCD_PASSWORD"))
 | 
					# TODO: Remove timeout, use certificate authentication
 | 
				
			||||||
 | 
					etcd_client = Etcd3Wrapper(host=config("ETCD_URL"), user="root",
 | 
				
			||||||
 | 
					                           password=config("ETCD_PASSWORD"),
 | 
				
			||||||
 | 
					                           timeout=2629746)
 | 
				
			||||||
images = list(client.get_prefix("/v1/image/", value_in_json=True))
 | 
					images = list(client.get_prefix("/v1/image/", value_in_json=True))
 | 
				
			||||||
images_to_be_created = list(filter(lambda e: e.value["status"] == "TO_BE_CREATED", images))
 | 
					images_to_be_created = list(filter(lambda e: e.value["status"] == "TO_BE_CREATED", images))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue