a
This commit is contained in:
		
					parent
					
						
							
								9e8ad44c49
							
						
					
				
			
			
				commit
				
					
						77cd91ccb1
					
				
			
		
					 1 changed files with 1 additions and 1 deletions
				
			
		
							
								
								
									
										2
									
								
								main.py
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								main.py
									
										
									
									
									
								
							| 
						 | 
					@ -16,7 +16,7 @@ if WITHOUT_CEPH and not os.path.isdir("/var/image"):
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# We want to get images entries that requests images to be created
 | 
					# We want to get images entries that requests images to be created
 | 
				
			||||||
images = client.get_prefix(IMAGE_PREFIX, value_in_json=True)
 | 
					images = client.get_prefix(IMAGE_PREFIX, value_in_json=True)
 | 
				
			||||||
print(list(images))
 | 
					# print(list(images))
 | 
				
			||||||
images_to_be_created = filter(lambda im: im.value["status"] == "TO_BE_CREATED", images)
 | 
					images_to_be_created = filter(lambda im: im.value["status"] == "TO_BE_CREATED", images)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
for image in images_to_be_created:
 | 
					for image in images_to_be_created:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue