def get_config_id(kwargs=None, call=None):
 if (call == 'action'):
  raise SaltCloudException('The get_config_id 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_config_id function requires either a 'name' or a 'linode_id' to be provided.")
 if (linode_id is None):
  linode_id = get_linode_id_from_name(name)
 response = _query('linode', 'config.list', args={'LinodeID': linode_id})['DATA']
 config_id = {'config_id': response[0]['ConfigID']}
 return config_id

def get_config_id ( kwargs = None , call = None ) : if ( call == 'action' ) : raise SaltCloudException ( 'The get_config_id 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_config_id function requires either a 'name' or a 'linode_id' to be provided." ) if ( linode_id is None ) : linode_id = get_linode_id_from_name ( name ) response = _query ( 'linode' , 'config.list' , args = { 'LinodeID' : linode_id } ) [ 'DATA' ] config_id = { 'config_id' : response [ 0 ] [ 'ConfigID' ] } return config_id
returns a config_id for a given linode .