Disable validation of config/files
Disable (for now) validation of configuration and files when applying
configuration or uploading to a Supervisor. We aren't quite there just
yet - we need to be storing all loaded services in memory at all times
(not just when they are running).
@@ -854,10 +854,6 @@ impl Manager {
));
}
let service_group: ServiceGroup = opts.take_service_group().into();
- for service in mgr.services.read().unwrap().iter() {
- if service.service_group != service_group {
- continue;
- }
outputln!(
"Setting new configuration version {} for {}",
opts.get_version(),
@@ -886,11 +882,6 @@ impl Manager {
Err(e) => return Err(net::err(ErrCode::Internal, e.to_string())),
}
}
- Err(net::err(
- ErrCode::NotFound,
- format!("{} not loaded.", service_group),
- ))
- }
pub fn service_file_put(
mgr: &ManagerState,
@@ -901,10 +892,6 @@ impl Manager {
return Err(net::err(ErrCode::EntityTooLarge, "File content too large."));
}
let service_group: ServiceGroup = opts.take_service_group().into();
- for service in mgr.services.read().unwrap().iter() {
- if service.service_group != service_group {
- continue;
- }
outputln!(
"Receiving new version {} of file {} for {}",
opts.get_version(),
@@ -935,11 +922,6 @@ impl Manager {
Err(e) => return Err(net::err(ErrCode::Internal, e.to_string())),
}
}
- Err(net::err(
- ErrCode::NotFound,
- format!("{} not loaded.", service_group),
- ))
- }
pub fn service_load(
mgr: &ManagerState,
req: &mut CtlRequest,
