Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v6.1.11 updates #2120

Merged
merged 4 commits into from
Dec 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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