We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f75a4b6 commit 46417bcCopy full SHA for 46417bc
1 file changed
SoftLayer/utils.py
@@ -14,6 +14,7 @@
14
from rich.console import Console
15
from rich.theme import Theme
16
from SoftLayer.CLI import exceptions
17
+
18
# pylint: disable=no-member, invalid-name
19
20
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):
272
273
274
# Before doing anything, let's see if this is an integer
275
try:
276
+ id = [int(identifier)]
277
# This looks like a globalIdentifier (UUID)
- if len(identifier) == 36 and UUID_RE.match(identifier):
278
+ if len(id) == 36 and UUID_RE.match(id):
279
return [identifier]
280
else:
- return [int(identifier)]
281
+ return id
282
except ValueError:
283
pass # It was worth a shot
284
0 commit comments