def list_templates(kwargs=None, call=None):
 if (call != 'function'):
  raise SaltCloudSystemExit('The list_templates function must be called with -f or --function.')
 return {'Templates': avail_images(call='function')}

def list_templates ( kwargs = None , call = None ) : if ( call != 'function' ) : raise SaltCloudSystemExit ( 'The list_templates function must be called with -f or --function.' ) return { 'Templates' : avail_images ( call = 'function' ) }
lists all templates available to the user and the users groups .