Skip to content

Commit

Permalink
Fix GetProperty always returning 'VALUE'
Browse files Browse the repository at this point in the history
  • Loading branch information
mikudeko authored and simontesar committed Oct 24, 2016
1 parent 8b82d2e commit 46d75e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zfs.go
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ func (d *Dataset) SetProperty(key, val string) error {
// A full list of available ZFS properties may be found here:
// https://www.freebsd.org/cgi/man.cgi?zfs(8).
func (d *Dataset) GetProperty(key string) (string, error) {
out, err := zfs("get", key, d.Name)
out, err := zfs("get", "-H", key, d.Name)
if err != nil {
return "", err
}
Expand Down

0 comments on commit 46d75e6

Please sign in to comment.