mirror of
https://github.com/restic/restic.git
synced 2026-05-14 06:25:22 +00:00
Add opts.Username, opts.Hostname to AddKey in the "key passwd" command
so that --user and --host flags work
This commit is contained in:
@@ -71,7 +71,7 @@ func changePassword(ctx context.Context, repo *repository.Repository, gopts glob
|
||||
return err
|
||||
}
|
||||
|
||||
id, err := repository.AddKey(ctx, repo, pw, "", "", repo.Key())
|
||||
id, err := repository.AddKey(ctx, repo, pw, opts.Username, opts.Hostname, repo.Key())
|
||||
if err != nil {
|
||||
return errors.Fatalf("creating new key failed: %v", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user