saltstack/salt-cloud — pull request #752 by techhat (2013-08-29 20:42:20+00:00)
Title: Fixing list index error for some AMIs

The data returned in rd_data[0]['blockDeviceMapping']['item'] is sometimes a string (such as in ami-642bba0d, a CentOS image) and sometimes a list (such as in ami-10314d79, an Ubuntu image). Handle it appropriately.