remove some unneeded test data

This commit is contained in:
rasmus 2020-12-23 10:27:48 +02:00
parent 4442e0320a
commit f641fd410d
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ def scraperMain(hostname, encname, sshkeypath):
## Get list of blades with some added info ##
serverName = ssh_runcmd('show server names') # Testing data: serverName = ['Bay Server Name Serial Number Status Power UID Partner\r', '--- ------------------------------------------------- --------------- -------- ------- --- -------\r', ' 1 foo-lab-1 OK On Off \r', ' 2 foo-lab-2 CZ302243P9 OK On Off \r', ' 3 foo-lab-3 CZJI441OKP Failed On Off \r', ' 4 kspve1 CZJ18450FK OK On Off \r', ' 5 kspve2-2 OK On Off \r', ' 6 kspve3 OK On Off \r', ' 7 foo-blade OK On Off \r', ' 8 Bar-01 CZ241274CC OK On Off \r', ' 9 baz-sar CZ3217FNYE OK On Off \r', ' 10 baz-sar2 CZ3217FFSS OK On Off \r', ' 11 [Absent] \r', ' 12 bee-bar OK On Off \r', ' 13 [Absent] \r', ' 14 [Absent] \r', ' 15 [Absent] \r', ' 16 [Absent] \r']
serverName = ssh_runcmd('show server names') # get data within some format
servers = listServers.listServers(serverName)
baysInUse = [x[0] for x in servers] # List of blades in use.