Apply the script-only capability and start contract to every Windows profile
This commit is contained in:
@@ -49,9 +49,5 @@ impl Observer {
|
||||
pub fn observation(&self,generation:u64)->AgentUpdateObservation{
|
||||
self.cached().filter(|v|v.generation==generation).map(|v|v.observation.clone()).unwrap_or_else(||AgentUpdateObservation::not_configured(rmm_agent_windows::release_platform::WIRE,chrono::Utc::now()))
|
||||
}
|
||||
pub fn capabilities(&self)->Vec<String>{
|
||||
let Some(value)=self.cached() else{return vec![];};
|
||||
let(Some(updater),Some(predecessor))=(&value.observation.updater,&value.observation.predecessor) else{return vec![];};
|
||||
vec![rmm_domain::agent_update::APPLY_CAPABILITY.into(),rmm_domain::agent_update::CHECK_CAPABILITY.into(),"update_agent".into(),"system:update_agent".into(),"helper.system.v1".into(),format!("updater.binary.sha256:{}",updater.binary_sha256),format!("updater.policy.sha256:{}",updater.policy_sha256),format!("helper.binary.sha256:{}",predecessor.helper_sha256)]
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user