mirror of https://github.com/openspug/spug
U 优化获取主机扩展性兼容性
parent
3a9929005c
commit
282f785928
|
@ -216,7 +216,7 @@ def fetch_host_extend(ssh):
|
|||
|
||||
code, out = ssh.exec_command_raw('lsblk -dbn -o SIZE -e 11 2> /dev/null')
|
||||
if code == 0:
|
||||
for item in out.strip().splitlines():
|
||||
for item in out.strip().splitlines()[:10]:
|
||||
item = item.strip()
|
||||
response['disk'].append(math.ceil(int(item) / 1024 / 1024 / 1024))
|
||||
|
||||
|
|
Loading…
Reference in New Issue