Skip to content

Commit

Permalink
Merge pull request #2120 from allmightyspiff/master
Browse files Browse the repository at this point in the history
v6.1.11 updates
  • Loading branch information
allmightyspiff authored Dec 20, 2023
2 parents b4510c0 + 72ba37d commit ed587b5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion SoftLayer/CLI/hardware/detail.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def cli(env, identifier, passwords, price, components):
operating_system = utils.lookup(result, 'operatingSystem', 'softwareLicense', 'softwareDescription') or {}
memory = formatting.gb(result.get('memoryCapacity', 0))
owner = None
if utils.lookup(result, 'billingItem') != []:
if utils.lookup(result, 'billingItem'):
owner = utils.lookup(result, 'billingItem', 'orderItem', 'order', 'userRecord', 'username')

table_hard_drives = formatting.Table(['Name', 'Capacity', 'Serial #'])
Expand Down
2 changes: 1 addition & 1 deletion SoftLayer/consts.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
:license: MIT, see LICENSE for more details.
"""
VERSION = 'v6.1.10'
VERSION = 'v6.1.11'
API_PUBLIC_ENDPOINT = 'https://api.softlayer.com/xmlrpc/v3.1/'
API_PRIVATE_ENDPOINT = 'https://api.service.softlayer.com/xmlrpc/v3.1/'
API_PUBLIC_ENDPOINT_REST = 'https://api.softlayer.com/rest/v3.1/'
Expand Down
2 changes: 1 addition & 1 deletion SoftLayer/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ def resolve_ids(identifier, resolvers):
"""

# Before doing anything, let's see if this is an integer
if type(identifier) == int:
if isinstance(identifier, int):
return [int(identifier)]
# It was worth a shot

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

setup(
name='SoftLayer',
version='v6.1.10',
version='v6.1.11',
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
long_description_content_type='text/x-rst',
Expand Down

0 comments on commit ed587b5

Please sign in to comment.