def list_custom_images(call=None):
 if (call != 'function'):
  raise SaltCloudSystemExit('The list_vlans function must be called with -f or --function.')
 ret = {}
 conn = get_conn('SoftLayer_Account')
 response = conn.getBlockDeviceTemplateGroups()
 for image in response:
  if ('globalIdentifier' not in image):
   continue
  ret[image['name']] = {'id': image['id'], 'name': image['name'], 'globalIdentifier': image['globalIdentifier']}
  if ('note' in image):
   ret[image['name']]['note'] = image['note']
 return ret

def list_custom_images ( call = None ) : if ( call != 'function' ) : raise SaltCloudSystemExit ( 'The list_vlans function must be called with -f or --function.' ) ret = { } conn = get_conn ( 'SoftLayer_Account' ) response = conn . getBlockDeviceTemplateGroups ( ) for image in response : if ( 'globalIdentifier' not in image ) : continue ret [ image [ 'name' ] ] = { 'id' : image [ 'id' ] , 'name' : image [ 'name' ] , 'globalIdentifier' : image [ 'globalIdentifier' ] } if ( 'note' in image ) : ret [ image [ 'name' ] ] [ 'note' ] = image [ 'note' ] return ret
return a dict of all custom vm images on the cloud provider .