def set_harddisk_sleep(minutes):
 value = _validate_sleep(minutes)
 cmd = 'systemsetup -setharddisksleep {0}'.format(value)
 salt.utils.mac_utils.execute_return_success(cmd)
 return salt.utils.mac_utils.confirm_updated(str(value), get_harddisk_sleep)

def set_harddisk_sleep ( minutes ) : value = _validate_sleep ( minutes ) cmd = 'systemsetup -setharddisksleep {0}' . format ( value ) salt . utils . mac_utils . execute_return_success ( cmd ) return salt . utils . mac_utils . confirm_updated ( str ( value ) , get_harddisk_sleep )
set the amount of idle time until the harddisk sleeps .