diff --git a/src/pyinfra/facts/zfs.py b/src/pyinfra/facts/zfs.py index dcde36796..f1b23a0cb 100644 --- a/src/pyinfra/facts/zfs.py +++ b/src/pyinfra/facts/zfs.py @@ -20,7 +20,7 @@ def _process_zfs_props_table(output): class ZfsPools(FactBase): @override def command(self) -> str: - return "zpool get -H all" + return "zpool get -Hp all" @override def requires_command(self) -> str: @@ -34,7 +34,7 @@ def process(self, output): class ZfsDatasets(FactBase): @override def command(self) -> str: - return "zfs get -H all" + return "zfs get -Hp all" @override def requires_command(self) -> str: diff --git a/tests/facts/zfs.Datasets/datasets.yaml b/tests/facts/zfs.Datasets/datasets.yaml index 28202022a..dfde38fa7 100644 --- a/tests/facts/zfs.Datasets/datasets.yaml +++ b/tests/facts/zfs.Datasets/datasets.yaml @@ -1,4 +1,4 @@ -command: zfs get -H all +command: zfs get -Hp all requires_command: zfs output: | tank type filesystem - diff --git a/tests/facts/zfs.Filesystems/filesystems.yaml b/tests/facts/zfs.Filesystems/filesystems.yaml index 8fb65042d..a85c0a0b1 100644 --- a/tests/facts/zfs.Filesystems/filesystems.yaml +++ b/tests/facts/zfs.Filesystems/filesystems.yaml @@ -1,4 +1,4 @@ -command: zfs get -H all +command: zfs get -Hp all requires_command: zfs output: | tank type filesystem - diff --git a/tests/facts/zfs.Pools/pools.yaml b/tests/facts/zfs.Pools/pools.yaml index ed21e48b1..ae56d9034 100644 --- a/tests/facts/zfs.Pools/pools.yaml +++ b/tests/facts/zfs.Pools/pools.yaml @@ -1,4 +1,4 @@ -command: zpool get -H all +command: zpool get -Hp all requires_command: zpool output: | tank compression lz4 - diff --git a/tests/facts/zfs.Snapshots/snapshots.yaml b/tests/facts/zfs.Snapshots/snapshots.yaml index 2ee067c4e..cac228cf9 100644 --- a/tests/facts/zfs.Snapshots/snapshots.yaml +++ b/tests/facts/zfs.Snapshots/snapshots.yaml @@ -1,4 +1,4 @@ -command: zfs get -H all +command: zfs get -Hp all requires_command: zfs output: | tank type filesystem - diff --git a/tests/facts/zfs.Volumes/volumes.yaml b/tests/facts/zfs.Volumes/volumes.yaml index 658ef748b..ba6ad88d4 100644 --- a/tests/facts/zfs.Volumes/volumes.yaml +++ b/tests/facts/zfs.Volumes/volumes.yaml @@ -1,4 +1,4 @@ -command: zfs get -H all +command: zfs get -Hp all requires_command: zfs output: | tank type filesystem -