Skip to content
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

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft

Conversation

nyanzebra
Copy link
Contributor

No description provided.

@@ -148,7 +149,7 @@ impl IdentityManager {
x509_thumbprint: None,
type_: Some(aziot_identity_common::hub::AuthType::Sas),
}),
None,
Some("Gordon".to_string()),
Copy link
Contributor Author

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!

Comment on lines 969 to 987
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![];
Copy link
Contributor Author

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

Comment on lines 970 to 971
String,
Option<String>,
Copy link
Contributor Author

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())
Copy link
Contributor Author

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant