Patch Cobbler python module to fix logger.info error in manage_bind.py

Change-Id: I61e3e0e5efb75cbd515c330d0d631e6f95e1996f
This commit is contained in:
Weidong Shao 2014-08-06 22:52:11 +00:00 committed by Weidong Shao
parent d643bf8dbc
commit 03173830bc

View File

@ -7,6 +7,8 @@ if [[ "$?" != "0" ]]; then
echo "failed to install cobbler related packages"
exit 1
else
# patch cobbler code
find /usr/lib -name manage_bind.py |xargs perl -pi.old -e 's/(\s+)(self\.logger\s+\= logger)/$1$2\n$1if self\.logger is None:\n$\1 import clogger\n$1 self\.logger = clogger.Logger\(\)/'
echo "cobbler related packages are installed"
fi