]> Frank Brehm's Git Trees - pixelpark/puppetmaster-webhooks.git/commitdiff
Fixing lib/webhooks/deploy.py
authorFrank Brehm <frank.brehm@pixelpark.com>
Wed, 25 Jan 2017 09:44:56 +0000 (10:44 +0100)
committerFrank Brehm <frank.brehm@pixelpark.com>
Wed, 25 Jan 2017 09:44:56 +0000 (10:44 +0100)
lib/webhooks/deploy.py

index 66e680c376d84cbac3834b45aff72d67c9c01ea6..f1cdd7ac8bc499a2da99cf9fdccc52125d5a4300 100644 (file)
@@ -139,7 +139,7 @@ class WebhookDeployApp(object):
         if 'REQUEST_METHOD' in os.environ:
 
             # we are in a CGI environment
-            if os.path.is_dir(self.log_directory) and os.access(self.log_directory, os.W_OK):
+            if os.path.isdir(self.log_directory) and os.access(self.log_directory, os.W_OK):
                 lh_file = logging.FileHandler(
                     self.logfile, mode='a', encoding='utf-8', delay=True)
                 if self.verbose: