salt-cloud: TypeError 'bool' object is unscriptable on map destruction #13266
Labels
Bug
broken, incorrect, or confusing behavior
fixed-pls-verify
fix is linked, bug author to confirm fix
P3
Priority 3
Salt-Cloud
severity-medium
3rd level, incorrect or bad functionality, confusing and lacks a work around
Milestone
I am attempting to destroy a map of VM's using the devel vSphere cloud provider. The VM's get created just fine and I can destroy them one-by-one, but I can't seem to destroy them using "salt-cloud /etc/salt/cloud.maps.d/testpool.map -d" as it throws this exception.
Output:
[ERROR ] An un-handled exception was caught by salt's global exception handler:
TypeError: 'bool' object is unsubscriptable
Traceback (most recent call last):
File "/usr/bin/salt-cloud", line 10, in
salt_cloud()
File "/usr/lib/python2.6/site-packages/salt/scripts.py", line 142, in salt_cloud
cloud.run()
File "/usr/lib/python2.6/site-packages/salt/cloud/cli.py", line 141, in run
matching = mapper.delete_map(query='list_nodes')
File "/usr/lib/python2.6/site-packages/salt/cloud/init.py", line 1515, in delete_map
elif vm_details['state'].lower() not in ('running',
TypeError: 'bool' object is unsubscriptable
Traceback (most recent call last):
File "/usr/bin/salt-cloud", line 10, in
salt_cloud()
File "/usr/lib/python2.6/site-packages/salt/scripts.py", line 142, in salt_cloud
cloud.run()
File "/usr/lib/python2.6/site-packages/salt/cloud/cli.py", line 141, in run
matching = mapper.delete_map(query='list_nodes')
File "/usr/lib/python2.6/site-packages/salt/cloud/init.py", line 1515, in delete_map
elif vm_details['state'].lower() not in ('running',
TypeError: 'bool' object is unsubscriptable
--Map File--
Mob_Server2012R2U1:
- TH-ST-12R2-PWH:
grains:
pool_id: 1234
Mob_Server2008R2:
- TH-ST-08R2-NMS1:
grains:
pool_id: 1234
--End Map File--
The text was updated successfully, but these errors were encountered: