From a1bca54f422b34d525e9b8e9bc5161221434a6a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaroslav=20=C5=A0karvada?= Date: Fri, 30 Nov 2012 15:04:03 +0100 Subject: [PATCH] plugin_disk: fixed hdparm call --- tuned/plugins/plugin_disk.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tuned/plugins/plugin_disk.py b/tuned/plugins/plugin_disk.py index ba63e1d..d267a02 100644 --- a/tuned/plugins/plugin_disk.py +++ b/tuned/plugins/plugin_disk.py @@ -178,7 +178,7 @@ class DiskPlugin(base.Plugin): @command_set("apm", per_device=True) def _set_apm(self, value, device): - tuned.utils.commands.execute(["hdparm", "-B", value, "/dev/" + device]) + tuned.utils.commands.execute(["hdparm", "-B", str(value), "/dev/" + device]) @command_get("apm") def _get_apm(self, device): @@ -193,7 +193,7 @@ class DiskPlugin(base.Plugin): @command_set("spindown", per_device=True) def _set_spindown(self, value, device): - tuned.utils.commands.execute(["hdparm", "-S", value, "/dev/" + device]) + tuned.utils.commands.execute(["hdparm", "-S", str(value), "/dev/" + device]) @command_get("spindown") def _get_spindown(self, device):