lib/zfs_mgmt.rb in zfs_mgmt-0.4.4 vs lib/zfs_mgmt.rb in zfs_mgmt-0.4.5

- old
+ new

@@ -309,10 +309,10 @@ deleteme.reverse! # oldest first for removal deleteme.each do |snap_name| $logger.debug("delete: #{snap_name} #{local_epoch_to_datetime(snaps[snap_name]['creation']).strftime('%F %T')}") end - com_base = ['zfs', 'destroy'] + com_base = [ZfsMgmt.global_options[:zfs_binary], 'destroy'] com_base.push('-d') if deleteme.length > 0 # why? com_base.push('-n') if noop com_base.push('-v') if verbose while deleteme.length > 0 for i in 0..(deleteme.length - 1) do