From a6304942fc773df75ed07b48eebbae1fe3fbbb47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A5=D0=B8=D1=80=D0=B5=D1=86=D0=BA=D0=B8=D0=B9=20=D0=9C?= =?UTF-8?q?=D0=B8=D1=85=D0=B0=D0=B8=D0=BB?= Date: Thu, 7 Sep 2017 12:22:17 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A0=D0=B5=D1=84=D0=B0=D0=BA=D1=82=D0=BE?= =?UTF-8?q?=D1=80=D0=B8=D0=BD=D0=B3.=20=D0=92=D1=8B=D0=BD=D0=BE=D1=81=20?= =?UTF-8?q?=D0=BB=D0=BE=D0=B3=D0=B8=D0=BA=D0=B8=20=D1=87=D1=82=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D1=8F=20/sys=20=D1=87=D0=B5=D1=80=D0=B5=D0=B7=20=D0=BE?= =?UTF-8?q?=D1=82=D0=B4=D0=B5=D0=BB=D1=8C=D0=BD=D1=8B=D0=B9=20=D0=BA=D0=BB?= =?UTF-8?q?=D0=B0=D1=81=D1=81.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pym/client/variables/client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pym/client/variables/client.py b/pym/client/variables/client.py index 0aa9b92..332c43b 100644 --- a/pym/client/variables/client.py +++ b/pym/client/variables/client.py @@ -22,6 +22,7 @@ from calculate.lib.datavars import (Variable, VariableError, ReadonlyVariable, ReadonlyTableVariable, FieldValue, HumanReadable) from calculate.lib.cl_ini_parser import iniParser +from calculate.lib.utils.device import sysfs from calculate.lib.utils.files import (isMount, readFile, find, FindFileType) from calculate.lib.utils.common import getValueFromCmdLine, CmdlineParams @@ -734,7 +735,7 @@ class VariableClCifsVer(ReadonlyVariable): """ def get(self): - return readFile("/sys/module/cifs/version") + return sysfs.read(sysfs.Path.Module, "cifs/version") class VariableClCifsCache(Variable):