def get_linode_id_from_name(name):
 nodes = _query('linode', 'list')['DATA']
 linode_id = ''
 for node in nodes:
  if (name == node['LABEL']):
   linode_id = node['LINODEID']
   return linode_id
 if (not linode_id):
  raise SaltCloudNotFound('The specified name, {0}, could not be found.'.format(name))

def get_linode_id_from_name ( name ) : nodes = _query ( 'linode' , 'list' ) [ 'DATA' ] linode_id = '' for node in nodes : if ( name == node [ 'LABEL' ] ) : linode_id = node [ 'LINODEID' ] return linode_id if ( not linode_id ) : raise SaltCloudNotFound ( 'The specified name, {0}, could not be found.' . format ( name ) )
returns the linode id for a vm from the provided name .