diff options
author | Christian Heimes <cheimes@redhat.com> | 2015-06-15 17:22:09 +0200 |
---|---|---|
committer | Christian Heimes <cheimes@redhat.com> | 2015-06-16 16:57:24 +0200 |
commit | 6286bcbdc3675c4d5c92ac65a6602d136911a0f7 (patch) | |
tree | e17be3b1c9b18f88186f573ad59a70cd6b018c8f /base/server/upgrade/10.2.3/01-FixInstanceWorkFolderOwnership | |
parent | a277f2740398a5574f9b4da46e869b05fef17a18 (diff) | |
download | pki-6286bcbdc3675c4d5c92ac65a6602d136911a0f7.tar.gz pki-6286bcbdc3675c4d5c92ac65a6602d136911a0f7.tar.xz pki-6286bcbdc3675c4d5c92ac65a6602d136911a0f7.zip |
Run pylint on upgrade scripts
pylint-build-scan.sh doesn't checked the upgrader's Python files yet.
This patch adds the common and server upgrade scripts to
pylint-build-scan.sh. It also fixes a couple of pylint violations,
mostly missing calls to __init__().
Diffstat (limited to 'base/server/upgrade/10.2.3/01-FixInstanceWorkFolderOwnership')
-rwxr-xr-x | base/server/upgrade/10.2.3/01-FixInstanceWorkFolderOwnership | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/base/server/upgrade/10.2.3/01-FixInstanceWorkFolderOwnership b/base/server/upgrade/10.2.3/01-FixInstanceWorkFolderOwnership index 686853c29..3c7f21aaf 100755 --- a/base/server/upgrade/10.2.3/01-FixInstanceWorkFolderOwnership +++ b/base/server/upgrade/10.2.3/01-FixInstanceWorkFolderOwnership @@ -26,10 +26,11 @@ import pki.server.upgrade class FixInstanceWorkFolderOwnership(pki.server.upgrade.PKIServerUpgradeScriptlet): def __init__(self): + super(FixInstanceWorkFolderOwnership, self).__init__() self.message = 'Fix instance work folder ownership' def upgrade_instance(self, instance): - dir = os.path.join(instance.base_dir, 'work/Catalina/localhost/pki') - if os.path.exists(dir): - pki.util.chown(dir, instance.uid, instance.gid) + directory = os.path.join(instance.base_dir, 'work/Catalina/localhost/pki') + if os.path.exists(directory): + pki.util.chown(directory, instance.uid, instance.gid) |