[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Freeipa-devel] [PATCH] ignore pylint warning



A false pylint warning was being printed on F16+. I pushed a patch to master and ipa-2-2 to disable it under the 1-liner rule.

rob

From 06627a542ff45a9eaa3aa1f125cb86b5aa273b16 Mon Sep 17 00:00:00 2001
From: Rob Crittenden <rcritten redhat com>
Date: Wed, 15 Feb 2012 10:33:11 -0500
Subject: [PATCH] Disable false pylint error in freeipa-systemd-upgrade

---
 init/systemd/freeipa-systemd-upgrade |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/init/systemd/freeipa-systemd-upgrade b/init/systemd/freeipa-systemd-upgrade
index e662d28..1f1a616 100755
--- a/init/systemd/freeipa-systemd-upgrade
+++ b/init/systemd/freeipa-systemd-upgrade
@@ -80,7 +80,7 @@ try:
# when enabling DS instances we'll also do configure /etc/sysconfig/dirsrv.systemd # which comes with 389-ds-base-1.2.10-0.8.a7 on F-16 and later. This is handled in
     # fedora16 platform code
-    realm = config.config.default_realm.upper().replace('.','-')
+ realm = config.config.default_realm.upper().replace('.','-') #pylint: disable=E1103 print " Re-enable Directory server instances PKI-IPA and %s " % (realm)
     if os.path.exists('/etc/systemd/system/dirsrv  service'):
         os.unlink('/etc/systemd/system/dirsrv  service')
--
1.7.7.6


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]