def update_config(config, new_config, scope, force_local=False):
 if (scope and (type(config[u'journals'][scope]) is dict)):
  config[u'journals'][scope].update(new_config)
 elif (scope and force_local):
  config[u'journals'][scope] = {u'journal': config[u'journals'][scope]}
  config[u'journals'][scope].update(new_config)
 else:
  config.update(new_config)

def update_config ( config , new_config , scope , force_local = False ) : if ( scope and ( type ( config [ u'journals' ] [ scope ] ) is dict ) ) : config [ u'journals' ] [ scope ] . update ( new_config ) elif ( scope and force_local ) : config [ u'journals' ] [ scope ] = { u'journal' : config [ u'journals' ] [ scope ] } config [ u'journals' ] [ scope ] . update ( new_config ) else : config . update ( new_config )
updates the snmp configuration .