Skip to content

Commit 46417bc

Browse files
caberoscaberos
authored andcommitted
fix the tox tool
1 parent f75a4b6 commit 46417bc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

SoftLayer/utils.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
from rich.console import Console
1515
from rich.theme import Theme
1616
from SoftLayer.CLI import exceptions
17+
1718
# pylint: disable=no-member, invalid-name
1819

1920
UUID_RE = re.compile(r'^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$', re.I)
@@ -272,11 +273,12 @@ def resolve_ids(identifier, resolvers):
272273

273274
# Before doing anything, let's see if this is an integer
274275
try:
276+
id = [int(identifier)]
275277
# This looks like a globalIdentifier (UUID)
276-
if len(identifier) == 36 and UUID_RE.match(identifier):
278+
if len(id) == 36 and UUID_RE.match(id):
277279
return [identifier]
278280
else:
279-
return [int(identifier)]
281+
return id
280282
except ValueError:
281283
pass # It was worth a shot
282284

0 commit comments

Comments
 (0)