mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 09:12:45 +01:00
need python_shell for pipes
This commit is contained in:
@@ -727,7 +727,8 @@ def check_hypervisor_disk_space(hypervisor: str, size_gb: int) -> Tuple[bool, Op
|
|||||||
result = local.cmd(
|
result = local.cmd(
|
||||||
hypervisor_minion,
|
hypervisor_minion,
|
||||||
'cmd.run',
|
'cmd.run',
|
||||||
["df -BG /nsm/libvirt/volumes | tail -1 | awk '{print $4}' | sed 's/G//'"]
|
["df -BG /nsm/libvirt/volumes | tail -1 | awk '{print $4}' | sed 's/G//'"],
|
||||||
|
kwarg={'python_shell': True}
|
||||||
)
|
)
|
||||||
|
|
||||||
if not result or hypervisor_minion not in result:
|
if not result or hypervisor_minion not in result:
|
||||||
|
|||||||
Reference in New Issue
Block a user