summaryrefslogtreecommitdiffstats
path: root/awxkit
diff options
context:
space:
mode:
authorYanis Guenane <yanis@guenane.org>2020-02-26 11:07:41 +0100
committerYanis Guenane <yanis@guenane.org>2020-02-26 11:07:46 +0100
commit07232f36944ad748d62a97b3806c662a6c79182c (patch)
tree9ed248fee85aabce81a9704aea9f20de92befc1d /awxkit
parentMerge pull request #6046 from rooftopcellist/update_translations_awx (diff)
downloadawx-07232f36944ad748d62a97b3806c662a6c79182c.tar.xz
awx-07232f36944ad748d62a97b3806c662a6c79182c.zip
awx-api-lint: Fix setup.cfg syntax for linter test
Signed-off-by: Yanis Guenane <yguenane@redhat.com>
Diffstat (limited to 'awxkit')
-rw-r--r--awxkit/awxkit/api/pages/credentials.py6
-rwxr-xr-xawxkit/awxkit/scripts/basic_session.py5
2 files changed, 6 insertions, 5 deletions
diff --git a/awxkit/awxkit/api/pages/credentials.py b/awxkit/awxkit/api/pages/credentials.py
index b12ada76d0..d9d039c837 100644
--- a/awxkit/awxkit/api/pages/credentials.py
+++ b/awxkit/awxkit/api/pages/credentials.py
@@ -182,7 +182,8 @@ class CredentialType(HasCreate, base.Base):
response = self.connection.post(urljoin(str(self.url), 'test/'), data)
exception = exception_from_status_code(response.status_code)
exc_str = "%s (%s) received" % (
- http.responses[response.status_code], response.status_code)
+ http.responses[response.status_code], response.status_code
+ )
if exception:
raise exception(exc_str, response.json())
elif response.status_code == http.FORBIDDEN:
@@ -328,7 +329,8 @@ class Credential(HasCopy, HasCreate, base.Base):
response = self.connection.post(urljoin(str(self.url), 'test/'), data)
exception = exception_from_status_code(response.status_code)
exc_str = "%s (%s) received" % (
- http.responses[response.status_code], response.status_code)
+ http.responses[response.status_code], response.status_code
+ )
if exception:
raise exception(exc_str, response.json())
elif response.status_code == http.FORBIDDEN:
diff --git a/awxkit/awxkit/scripts/basic_session.py b/awxkit/awxkit/scripts/basic_session.py
index b5561c6d14..4ede325214 100755
--- a/awxkit/awxkit/scripts/basic_session.py
+++ b/awxkit/awxkit/scripts/basic_session.py
@@ -1,5 +1,4 @@
from argparse import ArgumentParser
-import traceback
import logging
import pdb # noqa
import sys
@@ -92,8 +91,8 @@ def main():
exc = e
raise
except Exception as e:
- exc = e
- rc = 1
+ exc = e # noqa
+ rc = 1 # noqa
raise