def get_linode(kwargs=None, call=None):
 if (call == 'action'):
  raise SaltCloudSystemExit('The get_linode function must be called with -f or --function.')
 if (kwargs is None):
  kwargs = {}
 name = kwargs.get('name', None)
 linode_id = kwargs.get('linode_id', None)
 if ((name is None) and (linode_id is None)):
  raise SaltCloudSystemExit("The get_linode function requires either a 'name' or a 'linode_id'.")
 if (linode_id is None):
  linode_id = get_linode_id_from_name(name)
 result = _query('linode', 'list', args={'LinodeID': linode_id})
 return result['DATA'][0]

def get_linode ( kwargs = None , call = None ) : if ( call == 'action' ) : raise SaltCloudSystemExit ( 'The get_linode function must be called with -f or --function.' ) if ( kwargs is None ) : kwargs = { } name = kwargs . get ( 'name' , None ) linode_id = kwargs . get ( 'linode_id' , None ) if ( ( name is None ) and ( linode_id is None ) ) : raise SaltCloudSystemExit ( "The get_linode function requires either a 'name' or a 'linode_id'." ) if ( linode_id is None ) : linode_id = get_linode_id_from_name ( name ) result = _query ( 'linode' , 'list' , args = { 'LinodeID' : linode_id } ) return result [ 'DATA' ] [ 0 ]
returns data for a single named linode .