def _get_config(**kwargs):
 config = {'api_host': 'localhost', 'api_port': 623, 'api_user': 'admin', 'api_pass': '', 'api_kg': None, 'api_login_timeout': 2}
 if ('__salt__' in globals()):
  config_key = '{0}.config'.format(__virtualname__)
  config.update(__salt__['config.get'](config_key, {}))
 for k in (set(config.keys()) & set(kwargs.keys())):
  config[k] = kwargs[k]
 return config

def _get_config ( ** kwargs ) : config = { 'api_host' : 'localhost' , 'api_port' : 623 , 'api_user' : 'admin' , 'api_pass' : '' , 'api_kg' : None , 'api_login_timeout' : 2 } if ( '__salt__' in globals ( ) ) : config_key = '{0}.config' . format ( __virtualname__ ) config . update ( __salt__ [ 'config.get' ] ( config_key , { } ) ) for k in ( set ( config . keys ( ) ) & set ( kwargs . keys ( ) ) ) : config [ k ] = kwargs [ k ] return config
helper function for get_config .