a
This commit is contained in:
		
					parent
					
						
							
								3001a6ecc2
							
						
					
				
			
			
				commit
				
					
						fff397b795
					
				
			
		
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -17,7 +17,7 @@ def setup(ceph_url, ssh_username): | ||||||
|         subprocess.check_output(command.split()) |         subprocess.check_output(command.split()) | ||||||
|     except Exception: |     except Exception: | ||||||
|         p = subprocess.check_output(f"ssh-keyscan {ceph_url}".split()) |         p = subprocess.check_output(f"ssh-keyscan {ceph_url}".split()) | ||||||
|         keys = p.decode("utf-8").strip().split("\n") |         keys = p.decode("utf-8").split("\n") | ||||||
|         with open(os.path.expanduser("~/.ssh/known_hosts"), "a") as known_hosts: |         with open(os.path.expanduser("~/.ssh/known_hosts"), "a") as known_hosts: | ||||||
|             for key in keys: |             for key in keys: | ||||||
|                 known_hosts.write(key) |                 known_hosts.write(key) | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue