adapt to changes of SectionConfigPlugin
it requires not an Option<String> for the optional id_property Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
		
				
					committed by
					
						
						Dietmar Maurer
					
				
			
			
				
	
			
			
			
						parent
						
							07ce44a633
						
					
				
				
					commit
					16c75c580b
				
			@ -50,7 +50,7 @@ fn init() -> SectionConfig {
 | 
			
		||||
        _ => unreachable!(),
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
    let plugin = SectionConfigPlugin::new("datastore".to_string(), obj_schema);
 | 
			
		||||
    let plugin = SectionConfigPlugin::new("datastore".to_string(), None, obj_schema);
 | 
			
		||||
    let mut config = SectionConfig::new(&DATASTORE_SCHEMA);
 | 
			
		||||
    config.register_plugin(plugin);
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -66,7 +66,7 @@ fn init() -> SectionConfig {
 | 
			
		||||
        _ => unreachable!(),
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
    let plugin = SectionConfigPlugin::new("remote".to_string(), obj_schema);
 | 
			
		||||
    let plugin = SectionConfigPlugin::new("remote".to_string(), None, obj_schema);
 | 
			
		||||
    let mut config = SectionConfig::new(&REMOTE_ID_SCHEMA);
 | 
			
		||||
    config.register_plugin(plugin);
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -105,7 +105,7 @@ fn init() -> SectionConfig {
 | 
			
		||||
        _ => unreachable!(),
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
    let plugin = SectionConfigPlugin::new("user".to_string(), obj_schema);
 | 
			
		||||
    let plugin = SectionConfigPlugin::new("user".to_string(), None, obj_schema);
 | 
			
		||||
    let mut config = SectionConfig::new(&PROXMOX_USER_ID_SCHEMA);
 | 
			
		||||
 | 
			
		||||
    config.register_plugin(plugin);
 | 
			
		||||
 | 
			
		||||
@ -26,21 +26,21 @@ fn init_service() -> SectionConfig {
 | 
			
		||||
 | 
			
		||||
    match SystemdUnitSection::API_SCHEMA {
 | 
			
		||||
        Schema::Object(ref obj_schema) =>  {
 | 
			
		||||
            let plugin = SectionConfigPlugin::new("Unit".to_string(), obj_schema);
 | 
			
		||||
            let plugin = SectionConfigPlugin::new("Unit".to_string(), None, obj_schema);
 | 
			
		||||
            config.register_plugin(plugin);
 | 
			
		||||
        }
 | 
			
		||||
        _ => unreachable!(),
 | 
			
		||||
    };
 | 
			
		||||
    match SystemdInstallSection::API_SCHEMA {
 | 
			
		||||
        Schema::Object(ref obj_schema) =>  {
 | 
			
		||||
            let plugin = SectionConfigPlugin::new("Install".to_string(), obj_schema);
 | 
			
		||||
            let plugin = SectionConfigPlugin::new("Install".to_string(), None, obj_schema);
 | 
			
		||||
            config.register_plugin(plugin);
 | 
			
		||||
        }
 | 
			
		||||
        _ => unreachable!(),
 | 
			
		||||
    };
 | 
			
		||||
    match SystemdServiceSection::API_SCHEMA {
 | 
			
		||||
        Schema::Object(ref obj_schema) =>  {
 | 
			
		||||
            let plugin = SectionConfigPlugin::new("Service".to_string(), obj_schema);
 | 
			
		||||
            let plugin = SectionConfigPlugin::new("Service".to_string(), None, obj_schema);
 | 
			
		||||
            config.register_plugin(plugin);
 | 
			
		||||
        }
 | 
			
		||||
        _ => unreachable!(),
 | 
			
		||||
@ -55,21 +55,21 @@ fn init_timer() -> SectionConfig {
 | 
			
		||||
 | 
			
		||||
    match SystemdUnitSection::API_SCHEMA {
 | 
			
		||||
        Schema::Object(ref obj_schema) =>  {
 | 
			
		||||
            let plugin = SectionConfigPlugin::new("Unit".to_string(), obj_schema);
 | 
			
		||||
            let plugin = SectionConfigPlugin::new("Unit".to_string(), None, obj_schema);
 | 
			
		||||
            config.register_plugin(plugin);
 | 
			
		||||
        }
 | 
			
		||||
        _ => unreachable!(),
 | 
			
		||||
    };
 | 
			
		||||
    match SystemdInstallSection::API_SCHEMA {
 | 
			
		||||
        Schema::Object(ref obj_schema) =>  {
 | 
			
		||||
            let plugin = SectionConfigPlugin::new("Install".to_string(), obj_schema);
 | 
			
		||||
            let plugin = SectionConfigPlugin::new("Install".to_string(), None, obj_schema);
 | 
			
		||||
            config.register_plugin(plugin);
 | 
			
		||||
        }
 | 
			
		||||
        _ => unreachable!(),
 | 
			
		||||
    };
 | 
			
		||||
    match SystemdTimerSection::API_SCHEMA {
 | 
			
		||||
        Schema::Object(ref obj_schema) =>  {
 | 
			
		||||
            let plugin = SectionConfigPlugin::new("Timer".to_string(), obj_schema);
 | 
			
		||||
            let plugin = SectionConfigPlugin::new("Timer".to_string(), None, obj_schema);
 | 
			
		||||
            config.register_plugin(plugin);
 | 
			
		||||
        }
 | 
			
		||||
        _ => unreachable!(),
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user