mirror of
				https://github.com/Rudd-O/ansible-qubes.git
				synced 2025-11-04 05:28:54 +01:00 
			
		
		
		
	Update qubesformation.py
This commit is contained in:
		
							parent
							
								
									2b8f4e3a90
								
							
						
					
					
						commit
						8a850692f8
					
				@ -99,7 +99,7 @@ class ActionModule(template):
 | 
				
			|||||||
        qubesdata = commonlib.inject_qubes(task_vars)
 | 
					        qubesdata = commonlib.inject_qubes(task_vars)
 | 
				
			||||||
        task_vars["vms"] = generate_datastructure(qubesdata, task_vars)
 | 
					        task_vars["vms"] = generate_datastructure(qubesdata, task_vars)
 | 
				
			||||||
        with tempfile.NamedTemporaryFile() as x:
 | 
					        with tempfile.NamedTemporaryFile() as x:
 | 
				
			||||||
            x.write(contents)
 | 
					            x.write(contents.encode())
 | 
				
			||||||
            x.flush()
 | 
					            x.flush()
 | 
				
			||||||
            self._task.args['src'] = x.name
 | 
					            self._task.args['src'] = x.name
 | 
				
			||||||
            retval = template.run(self, tmp, task_vars)
 | 
					            retval = template.run(self, tmp, task_vars)
 | 
				
			||||||
@ -107,7 +107,7 @@ class ActionModule(template):
 | 
				
			|||||||
                return retval
 | 
					                return retval
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
            with tempfile.NamedTemporaryFile() as y:
 | 
					            with tempfile.NamedTemporaryFile() as y:
 | 
				
			||||||
                y.write(topcontents)
 | 
					                y.write(topcontents.encode())
 | 
				
			||||||
                y.flush()
 | 
					                y.flush()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                # Create new tmp path -- the other was blown away.
 | 
					                # Create new tmp path -- the other was blown away.
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user