Skip to content

Commit

Permalink
fix issue
Browse files Browse the repository at this point in the history
  • Loading branch information
vapao committed Jul 12, 2021
1 parent 54c1ee3 commit 0bb559c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spug_api/apps/host/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def fetch_host_extend(ssh):
"hostname -I",
"cat /etc/os-release | grep PRETTY_NAME | awk -F \\\" '{print $2}'",
"fdisk -l | grep '^Disk /' | awk '{print $5}'",
"fdisk -l | grep '^磁盘 /' | awk '{print $5}'"
"fdisk -l | grep '^磁盘 /' | awk '{print $4}' | awk -F',' '{print $2}'"
]
code, out = ssh.exec_command(';'.join(commands))
if code != 0:
Expand Down

0 comments on commit 0bb559c

Please sign in to comment.