-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Propagate managedBy #507
base: main
Are you sure you want to change the base?
Propagate managedBy #507
Conversation
@@ -148,7 +149,7 @@ impl IdentityManager { | |||
x509_thumbprint: None, | |||
type_: Some(aziot_identity_common::hub::AuthType::Sas), | |||
}), | |||
None, | |||
Some("Gordon".to_string()), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whoops, change to propagated one!
let hub_module_ids_and_managed_bys: std::collections::HashMap< | ||
String, | ||
Option<String>, | ||
> = hub_module_ids | ||
.into_iter() | ||
.filter_map(|i| { | ||
if let aziot_identity_common::Identity::Aziot(i) = i { | ||
if let Some(module_id) = &i.module_id { | ||
Some((module_id.0.clone(), i.managed_by.clone())) | ||
} else { | ||
None | ||
} | ||
} else { | ||
None | ||
} | ||
}) | ||
.collect(); | ||
|
||
let mut module_set = vec![]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Uncertain on what is 'right' here
String, | ||
Option<String>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
_
|
||
for (module_id, managed_by) in module_set { | ||
// TODO: do we need to take previous identity and pass along? | ||
self.create_module_identity(&module_id.0, managed_by.clone()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can just put None here, only host-level mods are affected!
No description provided.