mirror of
				https://github.com/librenms/librenms.git
				synced 2024-10-07 16:52:45 +00:00 
			
		
		
		
	Remove $config['oxidized']['features']['versioning']. I did not update the schema to remove the entry from the config table.
Update the documentation a bit. Issue #2812
This commit is contained in:
		@@ -103,11 +103,10 @@ if (is_admin()) {
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
    else if ($config['oxidized']['enabled'] === true && isset($config['oxidized']['url'])) {
 | 
			
		||||
        // fetch info about the node and then a list of versions for that node
 | 
			
		||||
        $node_info = json_decode(file_get_contents($config['oxidized']['url'].'/node/show/'.$device['hostname'].'?format=json'), true);
 | 
			
		||||
        $config_versions = json_decode(file_get_contents($config['oxidized']['url'].'/node/version?node_full='.(!empty($node_info['group']) ? $node_info['group'].'/' : '').$device['hostname'].'&format=json'), true);
 | 
			
		||||
 | 
			
		||||
        if ($config['oxidized']['features']['versioning'] === true) { // fetch a list of versions
 | 
			
		||||
            $config_versions = json_decode(file_get_contents($config['oxidized']['url'].'/node/version?node_full='.(!empty($node_info['group']) ? $node_info['group'].'/' : '').$device['hostname'].'&format=json'), true);
 | 
			
		||||
        }
 | 
			
		||||
        if (is_array($config_versions)) {
 | 
			
		||||
            $config_total = count($config_versions);
 | 
			
		||||
        }
 | 
			
		||||
 
 | 
			
		||||
@@ -13,10 +13,6 @@ $oxidized_conf = array(
 | 
			
		||||
          'descr'              => 'URL to your Oxidized API',
 | 
			
		||||
          'type'               => 'text',
 | 
			
		||||
    ),
 | 
			
		||||
    array('name'               => 'oxidized.features.versioning',
 | 
			
		||||
          'descr'              => 'Enable config versioning access',
 | 
			
		||||
          'type'               => 'checkbox',
 | 
			
		||||
    ),
 | 
			
		||||
    array('name'               => 'oxidized.group_support',
 | 
			
		||||
          'descr'              => 'Enable the return of groups to Oxidized',
 | 
			
		||||
          'type'               => 'checkbox',
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user