Softlayer sl_vm.py uses a hard coded list of data centers #32387
Labels
affects_2.3
This issue/PR affects Ansible v2.3
bot_closed
bug
This issue/PR relates to a bug.
cloud
collection:community.general
collection
Related to Ansible Collections work
has_pr
This issue has an associated PR.
module
This issue/PR relates to a module.
needs_collection_redirect
https://github.com/ansible/ansibullbot/blob/master/docs/collection_migration.md
support:community
This issue/PR relates to code supported by the Ansible community.
ISSUE TYPE
COMPONENT NAME
cloud/softlayer/sl_vm.py
ANSIBLE VERSION
2.3.2
CONFIGURATION
SUMMARY
Trying to use this module to provision node on the wdc06 Softlayer data center produces the following error:
value of datacenter must be one of: ams01,ams03,che01,dal01,dal05,dal06,dal09,dal10,fra02,hkg02,hou02,lon02,mel01,mex01,mil01,mon01,osl01,par01,sjc01,sjc03,sao01,sea01,sng01,syd01,tok02,tor01,wdc01,wdc04, got: wdc06"}
I have reviewed the source code and the data center list is currently hard coded, can you please extend this to include wdc06
STEPS TO REPRODUCE
Attempt to provision a new VM using the wdc06 data center.
sl_vm:
hostname: ""
domain: ""
datacenter: "wdc06"
tags: ""
image_id: ""
hourly: "False"
private: True
dedicated: "False"
local_disk: false
cpus: "1"
memory: "1024"
disks: []
wait: True
wait_time: 5400
private_vlan: ""
nic_speed: 100
state: "present"
EXPECTED RESULTS
node is provisioned as requested.
ACTUAL RESULTS
Error produced
error:
value of datacenter must be one of: ams01,ams03,che01,dal01,dal05,dal06,dal09,dal10,fra02,hkg02,hou02,lon02,mel01,mex01,mil01,mon01,osl01,par01,sjc01,sjc03,sao01,sea01,sng01,syd01,tok02,tor01,wdc01,wdc04, got: wdc06"}
The text was updated successfully, but these errors were encountered: