Skip to content

Commit 5a437a2

Browse files
committed
Cosmetic: Minor complaints from pylint addressed.
Signed-off-by: Kurt Garloff <[email protected]>
1 parent 7e46635 commit 5a437a2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Tests/iaas/mandatory-services/mandatory-iaas-services.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
"""
99

1010
import argparse
11-
import boto3
1211
from collections import Counter
1312
import logging
1413
import os
1514
import re
1615
import sys
1716
import uuid
17+
import boto3
1818

1919
import openstack
2020

@@ -143,9 +143,10 @@ def s3_from_ostack(creds, conn, endpoint):
143143
creds["AK"] = ak
144144
creds["SK"] = sk
145145
return crd.id
146-
except BaseException as exc:
147-
print(f"WARNING: ec2 creds creation failed: {exc!s}", file=sys.stderr)
146+
except BaseException as excn:
147+
print(f"WARNING: ec2 creds creation failed: {excn!s}", file=sys.stderr)
148148
# pass
149+
return None
149150

150151

151152
def check_for_s3_and_swift(conn: openstack.connection.Connection, s3_credentials=None):

0 commit comments

Comments
 (0)