File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 1414from rich .console import Console
1515from rich .theme import Theme
1616from SoftLayer .CLI import exceptions
17+
1718# pylint: disable=no-member, invalid-name
1819
1920UUID_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
You can’t perform that action at this time.
0 commit comments