Skip to content

Commit c56449c

Browse files
authored
fix warn log message (#5422)
1 parent 2862ffb commit c56449c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

koku/masu/util/aws/common.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,8 @@ def __init__(self, credentials):
216216
if match:
217217
for key, val in match.groupdict().items():
218218
setattr(self, key, val)
219-
220-
LOG.warning(f"Invalid ARN: {self.arn}")
219+
else:
220+
LOG.warning(f"Invalid ARN: {self.arn}")
221221

222222
def __repr__(self):
223223
"""Return the ARN itself."""

0 commit comments

Comments
 (0)