Skip to content

Commit

Permalink
[release-1.22] Accept repositories on login/logout
Browse files Browse the repository at this point in the history
Cherry pick #3412 from @saschagrunert
[NO NEW TESTS NEEDED]

Signed-off-by: TomSweeneyRedHat <[email protected]>
  • Loading branch information
TomSweeneyRedHat committed Aug 3, 2021
1 parent e6ea308 commit 2d1b0f8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions cmd/buildah/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ func init() {
var (
opts = loginReply{
loginOpts: auth.LoginOptions{
Stdin: os.Stdin,
Stdout: os.Stdout},
Stdin: os.Stdin,
Stdout: os.Stdout,
AcceptRepositories: true,
},
}
loginDescription = "Login to a container registry on a specified server."
)
Expand Down
3 changes: 2 additions & 1 deletion cmd/buildah/logout.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ import (
func init() {
var (
opts = auth.LogoutOptions{
Stdout: os.Stdout,
Stdout: os.Stdout,
AcceptRepositories: true,
}
logoutDescription = "Remove the cached username and password for the registry."
)
Expand Down

0 comments on commit 2d1b0f8

Please sign in to comment.