mirror of
				https://github.com/ARM-software/workload-automation.git
				synced 2025-11-04 09:02:12 +00:00 
			
		
		
		
	@@ -58,8 +58,8 @@ class TelnetConnection(pxssh.pxssh):
 | 
				
			|||||||
    # pylint: disable=arguments-differ
 | 
					    # pylint: disable=arguments-differ
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def login(self, server, username, password='', original_prompt=r'[#$]', login_timeout=10,
 | 
					    def login(self, server, username, password='', original_prompt=r'[#$]', login_timeout=10,
 | 
				
			||||||
              auto_prompt_reset=True, sync_multiplier=1):
 | 
					              auto_prompt_reset=True, sync_multiplier=1, port=23):
 | 
				
			||||||
        cmd = 'telnet -l {} {}'.format(username, server)
 | 
					        cmd = 'telnet -l {} {} {}'.format(username, server, port)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        spawn._spawn(self, cmd)  # pylint: disable=protected-access
 | 
					        spawn._spawn(self, cmd)  # pylint: disable=protected-access
 | 
				
			||||||
        i = self.expect('(?i)(?:password)', timeout=login_timeout)
 | 
					        i = self.expect('(?i)(?:password)', timeout=login_timeout)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user