Search
j0ke.net Open Build Service
>
Projects
>
virtualization
:
Cloud
:
oVirt
:
3.3.2
>
vdsm
> 0005-gluster-correct-parameter-for-creating-hookpath-in-v.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File 0005-gluster-correct-parameter-for-creating-hookpath-in-v.patch of Package vdsm
From 39b35ce25e26d0190ba0567e64751d9a55aa8aec Mon Sep 17 00:00:00 2001 From: ndarshan <dnarayan@redhat.com> Date: Thu, 7 Nov 2013 15:28:55 +0530 Subject: [PATCH 05/11] gluster: correct parameter for creating hookpath in verb hookAdd. parameter hookLevel must be in lower case for creating correct path for hook. so that parameter is changed to lower case. Change-Id: Ic16885a7f837ccceede2cf1b70b5da3138a12a60 Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1028972 Signed-off-by: ndarshan <dnarayan@redhat.com> Reviewed-on: http://gerrit.ovirt.org/21017 Reviewed-by: Aravinda VK <avishwan@redhat.com> Reviewed-by: Bala.FA <barumuga@redhat.com> Reviewed-by: Dan Kenigsberg <danken@redhat.com> Reviewed-on: http://gerrit.ovirt.org/21538 Reviewed-by: Yaniv Bronhaim <ybronhei@redhat.com> Tested-by: Yaniv Bronhaim <ybronhei@redhat.com> --- vdsm/gluster/hooks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vdsm/gluster/hooks.py b/vdsm/gluster/hooks.py index 914d09d..4f1c14d 100644 --- a/vdsm/gluster/hooks.py +++ b/vdsm/gluster/hooks.py @@ -244,7 +244,7 @@ def hookUpdate(glusterCmd, hookLevel, hookName, hookData, hookMd5Sum): @makePublic def hookAdd(glusterCmd, hookLevel, hookName, hookData, hookMd5Sum, enable=False): - hookPath = os.path.join(_glusterHooksPath, glusterCmd, hookLevel) + hookPath = os.path.join(_glusterHooksPath, glusterCmd, hookLevel.lower()) try: os.makedirs(hookPath) if selinux.is_selinux_enabled(): -- 1.8.4.2