Check if template_vm is set when recreating config files (#131)
This commit is contained in:
		
							parent
							
								
									24b5c24c25
								
							
						
					
					
						commit
						f2567cbf71
					
				@ -18,7 +18,7 @@ def main():
 | 
				
			|||||||
        print templ, 'is not a template'
 | 
					        print templ, 'is not a template'
 | 
				
			||||||
        sys.exit(1)
 | 
					        sys.exit(1)
 | 
				
			||||||
    for vm in qvm_collection.values():
 | 
					    for vm in qvm_collection.values():
 | 
				
			||||||
        if vm.is_appvm() and vm.template_vm.qid == tvm.qid:
 | 
					        if vm.template_vm is not None and vm.template_vm.qid == tvm.qid:
 | 
				
			||||||
            vm.create_config_file()
 | 
					            vm.create_config_file()
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
main()
 | 
					main()
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user