Skip to content

Commit c1477f8

Browse files
committed
#1222 check if the identifier is really just a number
1 parent ee748de commit c1477f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SoftLayer/managers/load_balancer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def get_lbaas_uuid_id(self, identifier):
9696
:return (uuid, id):
9797
"""
9898
mask = "mask[id,uuid]"
99-
if isinstance(identifier, int):
99+
if isinstance(identifier, int) or identifier.isdigit():
100100
this_lb = self.lbaas.getObject(id=identifier, mask=mask)
101101
elif len(identifier) == 36 and utils.UUID_RE.match(identifier):
102102
this_lb = self.lbaas.getLoadBalancer(identifier, mask=mask)

0 commit comments

Comments
 (0)