From a901e5f304a98b5187b62ab3a2a0865a093c4094 Mon Sep 17 00:00:00 2001 From: highlyunavailable Date: Wed, 3 Sep 2014 15:28:20 -0700 Subject: [PATCH] Change getBareMetalInstances call to getHardware Per a ticket with softlayer because their API was returning an empty array to calls to getBareMetalInstances: You do not have any machines flagged as a Bare Metal Instance. We used to refer to physical machines as Bare Metal Dedicated (monthly) and Bare Metal Instance (hourly). Now we refer to them as Bare Metal (monthly) and Bare Metal hourly (hourly). The getBareMetalInstances function will still return the hourly. getHardware gets both according to Softlayer. --- salt/cloud/clouds/softlayer_hw.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/cloud/clouds/softlayer_hw.py b/salt/cloud/clouds/softlayer_hw.py index de767d2b42..866429e3fc 100644 --- a/salt/cloud/clouds/softlayer_hw.py +++ b/salt/cloud/clouds/softlayer_hw.py @@ -696,7 +696,7 @@ def list_nodes_full(mask='mask[id, hostname, primaryIpAddress, \ ret = {} conn = get_conn(service='Account') - response = conn.getBareMetalInstances(mask=mask) + response = conn.getHardware(mask=mask) for node in response: ret[node['hostname']] = node