Merge "Only run zfs command if command is present"
This commit is contained in:
commit
2e712d8710
@ -345,7 +345,9 @@ function get_instance_info {
|
|||||||
"/openstack/log/instance-info/btrfs_${dir_name}_quotas_${TS}.log" || true
|
"/openstack/log/instance-info/btrfs_${dir_name}_quotas_${TS}.log" || true
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if command -v zfs >/dev/null; then
|
||||||
zfs list > "/openstack/log/instance-info/zfs_lxc_${TS}.log" || true
|
zfs list > "/openstack/log/instance-info/zfs_lxc_${TS}.log" || true
|
||||||
|
fi
|
||||||
|
|
||||||
df -h > "/openstack/log/instance-info/report_fs_df_${TS}.log" || true
|
df -h > "/openstack/log/instance-info/report_fs_df_${TS}.log" || true
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user