From: Frank Brehm Date: Wed, 25 Jan 2017 09:44:56 +0000 (+0100) Subject: Fixing lib/webhooks/deploy.py X-Git-Tag: 0.8.4~63 X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=82a58b918b21f32e98dfbeccc224a3aff362b5e3;p=pixelpark%2Fpuppetmaster-webhooks.git Fixing lib/webhooks/deploy.py --- diff --git a/lib/webhooks/deploy.py b/lib/webhooks/deploy.py index 66e680c..f1cdd7a 100644 --- a/lib/webhooks/deploy.py +++ b/lib/webhooks/deploy.py @@ -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: