]> Frank Brehm's Git Trees - pixelpark/puppetmaster-webhooks.git/commitdiff
Applying some flake8 rules
authorFrank Brehm <frank.brehm@pixelpark.com>
Tue, 21 Aug 2018 09:05:37 +0000 (11:05 +0200)
committerFrank Brehm <frank.brehm@pixelpark.com>
Tue, 21 Aug 2018 09:05:37 +0000 (11:05 +0200)
lib/webhooks/r10k.py

index c154431a3473e15a88799ef3b2c5e932ed3861e5..bc6c49ccdfc9e4e610a29c2fd7b441fb36ae6123 100644 (file)
@@ -16,7 +16,6 @@ import textwrap
 import locale
 import pipes
 import urllib.parse
-import time
 import warnings
 
 # Third party modules
@@ -25,7 +24,7 @@ import requests
 # Own modules
 import webhooks
 
-from .common import pp, to_str, to_bool
+from .common import to_str
 
 from .base_app import BaseHookApp
 
@@ -269,7 +268,7 @@ class R10kHookApp(BaseHookApp):
 
         msg = "Got status code: {}.".format(response.status_code)
         if response.text:
-             msg += "\nOutput:\n{}".format(response.text)
+            msg += "\nOutput:\n{}".format(response.text)
         else:
             msg += " No output."
         LOG.warn(msg)