diff options
Diffstat (limited to 'src/cmd/id')
-rw-r--r-- | src/cmd/id/init.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cmd/id/init.rs b/src/cmd/id/init.rs index 35d3bb8..f481f48 100644 --- a/src/cmd/id/init.rs +++ b/src/cmd/id/init.rs @@ -145,13 +145,14 @@ pub fn init(args: Init) -> cmd::Result<Output> { .map(metadata::Key::from) .chain(args.public) .collect::<KeySet>(); + let roles = metadata::identity::Roles::root(keys.keys().cloned().collect(), threshold); let meta = { let id = metadata::Identity { fmt_version: Default::default(), prev: None, keys, - threshold, + roles, mirrors: args.mirrors.into_iter().collect(), expires: args.expires, custom, |