From f00592d14c2e7cd280561129d170ff748dfedf15 Mon Sep 17 00:00:00 2001 From: Christopher Gallo Date: Mon, 30 Oct 2023 14:18:19 -0500 Subject: [PATCH 1/3] fixed a bug when hardware detail would fail when there was no billing Item --- SoftLayer/CLI/hardware/detail.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SoftLayer/CLI/hardware/detail.py b/SoftLayer/CLI/hardware/detail.py index b25c4ad60..fe8661153 100644 --- a/SoftLayer/CLI/hardware/detail.py +++ b/SoftLayer/CLI/hardware/detail.py @@ -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 #']) From 50a8e23cfe7e26fb5f6dca5518d3c5e5fb285394 Mon Sep 17 00:00:00 2001 From: Christopher Gallo Date: Wed, 20 Dec 2023 14:50:38 -0600 Subject: [PATCH 2/3] v6.1.11 --- SoftLayer/consts.py | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/SoftLayer/consts.py b/SoftLayer/consts.py index 6f2c2a794..883ba61a1 100644 --- a/SoftLayer/consts.py +++ b/SoftLayer/consts.py @@ -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/' diff --git a/setup.py b/setup.py index 2d7a2b878..0151b0d17 100644 --- a/setup.py +++ b/setup.py @@ -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', From 72ba37d66b40e99fe95a31d68e6f4bfe1487f748 Mon Sep 17 00:00:00 2001 From: Christopher Gallo Date: Wed, 20 Dec 2023 14:57:14 -0600 Subject: [PATCH 3/3] Flake8 fix --- SoftLayer/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SoftLayer/utils.py b/SoftLayer/utils.py index 0c569faf4..8188cb256 100644 --- a/SoftLayer/utils.py +++ b/SoftLayer/utils.py @@ -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