Skip to content

Conversation

@nyanzebra
Copy link
Contributor

No description provided.

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