Skip to content

Commit

Permalink
Make "lakefs init" work when _not_ specifying access_key_id
Browse files Browse the repository at this point in the history
Fixes #940.
  • Loading branch information
arielshaqed committed Nov 19, 2020
1 parent 74ac713 commit 38c4763
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/lakefs/cmd/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,9 @@ func init() {
rootCmd.AddCommand(initCmd)
f := initCmd.Flags()
f.String("user-name", "", "an identifier for the user (e.g. \"jane.doe\")")
f.String("access-key-id", "", "AWS-format access key ID to create for that user (for integration)")
f.String("secret-access-key", "", "AWS-format secret access key to create for that user (for integration)")
f.MarkHidden("access-key-id")
f.MarkHidden("secret-access-key")
_ = initCmd.MarkFlagRequired("user-name")
}

0 comments on commit 38c4763

Please sign in to comment.