mirror of
				https://github.com/Rudd-O/ansible-qubes.git
				synced 2025-11-04 13:38:55 +01:00 
			
		
		
		
	Document and dedent certain code paths
This commit is contained in:
		
							parent
							
								
									1f8e70b891
								
							
						
					
					
						commit
						54f0bb44fa
					
				
							
								
								
									
										3
									
								
								bin/qssh
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								bin/qssh
									
									
									
									
									
								
							@ -52,6 +52,7 @@ def get_vmname_and_management_proxy(hostname):
 | 
			
		||||
parms = sys.argv[1:]
 | 
			
		||||
host, rest = find_hostname_and_command(parms)
 | 
			
		||||
 | 
			
		||||
# SCP execution path.
 | 
			
		||||
if os.path.basename(sys.argv[0]) in ("scp", "qscp"):
 | 
			
		||||
  if not is_qubes_host(host):
 | 
			
		||||
    os.execv("/usr/bin/scp", ["/usr/bin/scp"] + parms)
 | 
			
		||||
@ -60,7 +61,7 @@ if os.path.basename(sys.argv[0]) in ("scp", "qscp"):
 | 
			
		||||
  scmd = ["/usr/bin/scp"] + ["-S", path_to_ssh] + parms
 | 
			
		||||
  os.execvp(scmd[0], scmd)
 | 
			
		||||
 | 
			
		||||
else:
 | 
			
		||||
# SSH execution path.
 | 
			
		||||
if not is_qubes_host(host):
 | 
			
		||||
  os.execv("/usr/bin/ssh", ["/usr/bin/ssh"] + parms)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user