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:
parent
07ce44a633
commit
16c75c580b
@ -50,7 +50,7 @@ fn init() -> SectionConfig {
|
|||||||
_ => unreachable!(),
|
_ => 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);
|
let mut config = SectionConfig::new(&DATASTORE_SCHEMA);
|
||||||
config.register_plugin(plugin);
|
config.register_plugin(plugin);
|
||||||
|
|
||||||
|
@ -66,7 +66,7 @@ fn init() -> SectionConfig {
|
|||||||
_ => unreachable!(),
|
_ => 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);
|
let mut config = SectionConfig::new(&REMOTE_ID_SCHEMA);
|
||||||
config.register_plugin(plugin);
|
config.register_plugin(plugin);
|
||||||
|
|
||||||
|
@ -105,7 +105,7 @@ fn init() -> SectionConfig {
|
|||||||
_ => unreachable!(),
|
_ => 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);
|
let mut config = SectionConfig::new(&PROXMOX_USER_ID_SCHEMA);
|
||||||
|
|
||||||
config.register_plugin(plugin);
|
config.register_plugin(plugin);
|
||||||
|
@ -26,21 +26,21 @@ fn init_service() -> SectionConfig {
|
|||||||
|
|
||||||
match SystemdUnitSection::API_SCHEMA {
|
match SystemdUnitSection::API_SCHEMA {
|
||||||
Schema::Object(ref obj_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);
|
config.register_plugin(plugin);
|
||||||
}
|
}
|
||||||
_ => unreachable!(),
|
_ => unreachable!(),
|
||||||
};
|
};
|
||||||
match SystemdInstallSection::API_SCHEMA {
|
match SystemdInstallSection::API_SCHEMA {
|
||||||
Schema::Object(ref obj_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);
|
config.register_plugin(plugin);
|
||||||
}
|
}
|
||||||
_ => unreachable!(),
|
_ => unreachable!(),
|
||||||
};
|
};
|
||||||
match SystemdServiceSection::API_SCHEMA {
|
match SystemdServiceSection::API_SCHEMA {
|
||||||
Schema::Object(ref obj_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);
|
config.register_plugin(plugin);
|
||||||
}
|
}
|
||||||
_ => unreachable!(),
|
_ => unreachable!(),
|
||||||
@ -55,21 +55,21 @@ fn init_timer() -> SectionConfig {
|
|||||||
|
|
||||||
match SystemdUnitSection::API_SCHEMA {
|
match SystemdUnitSection::API_SCHEMA {
|
||||||
Schema::Object(ref obj_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);
|
config.register_plugin(plugin);
|
||||||
}
|
}
|
||||||
_ => unreachable!(),
|
_ => unreachable!(),
|
||||||
};
|
};
|
||||||
match SystemdInstallSection::API_SCHEMA {
|
match SystemdInstallSection::API_SCHEMA {
|
||||||
Schema::Object(ref obj_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);
|
config.register_plugin(plugin);
|
||||||
}
|
}
|
||||||
_ => unreachable!(),
|
_ => unreachable!(),
|
||||||
};
|
};
|
||||||
match SystemdTimerSection::API_SCHEMA {
|
match SystemdTimerSection::API_SCHEMA {
|
||||||
Schema::Object(ref obj_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);
|
config.register_plugin(plugin);
|
||||||
}
|
}
|
||||||
_ => unreachable!(),
|
_ => unreachable!(),
|
||||||
|
Loading…
Reference in New Issue
Block a user