mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-01 19:28:00 +00:00
lf_check.py : replace does not work on a list
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
This commit is contained in:
@@ -218,7 +218,6 @@ class lf_check():
|
|||||||
ssh.connect(hostname=self.lf_mgr_ip, port=22, username=self.lf_mgr_user, password=self.lf_mgr_pass, banner_timeout=600)
|
ssh.connect(hostname=self.lf_mgr_ip, port=22, username=self.lf_mgr_user, password=self.lf_mgr_pass, banner_timeout=600)
|
||||||
stdin, stdout, stderr = ssh.exec_command('uname -r')
|
stdin, stdout, stderr = ssh.exec_command('uname -r')
|
||||||
lanforge_kernel_version = stdout.readlines()
|
lanforge_kernel_version = stdout.readlines()
|
||||||
lanforge_kernel_version = lanforge_kernel_version.replace('\n','')
|
|
||||||
# print('\n'.join(output))
|
# print('\n'.join(output))
|
||||||
ssh.close()
|
ssh.close()
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
@@ -231,7 +230,6 @@ class lf_check():
|
|||||||
ssh.connect(hostname=self.lf_mgr_ip, port=22, username=self.lf_mgr_user, password=self.lf_mgr_pass, banner_timeout=600)
|
ssh.connect(hostname=self.lf_mgr_ip, port=22, username=self.lf_mgr_user, password=self.lf_mgr_pass, banner_timeout=600)
|
||||||
stdin, stdout, stderr = ssh.exec_command('./btserver --version | grep Version')
|
stdin, stdout, stderr = ssh.exec_command('./btserver --version | grep Version')
|
||||||
lanforge_gui_version = stdout.readlines()
|
lanforge_gui_version = stdout.readlines()
|
||||||
lanforge_gui_version = lanforge_gui_version.replace('\n','')
|
|
||||||
# print('\n'.join(output))
|
# print('\n'.join(output))
|
||||||
ssh.close()
|
ssh.close()
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
|
|||||||
Reference in New Issue
Block a user