[node-patches] Change in ovirt-node[master]: fix NoneType error when switch to performance page
boh.ricky at gmail.com
boh.ricky at gmail.com
Tue Jul 23 12:45:50 UTC 2013
hai bo has uploaded a new change for review.
Change subject: fix NoneType error when switch to performance page
......................................................................
fix NoneType error when switch to performance page
Change-Id: Ib57895ec60bf9fb1eb3891efdcbadef173cb740f
Signed-off-by: boh.ricky <boh.ricky at gmail.com>
---
M src/ovirt/node/utils/tuned.py
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/53/17253/1
diff --git a/src/ovirt/node/utils/tuned.py b/src/ovirt/node/utils/tuned.py
index 2770e48..0caacde 100644
--- a/src/ovirt/node/utils/tuned.py
+++ b/src/ovirt/node/utils/tuned.py
@@ -49,9 +49,9 @@
"""
try:
profile = process.check_output(["/usr/sbin/tuned-adm", "active"])
+ return re.match(r'.*?: (.*)', profile).group(1)
except:
return "None"
- return re.match(r'.*?: (.*)', profile).group(1)
def set_active_profile(profile):
--
To view, visit http://gerrit.ovirt.org/17253
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib57895ec60bf9fb1eb3891efdcbadef173cb740f
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: hai bo <boh.ricky at gmail.com>
More information about the node-patches
mailing list