Skip to content

Commit

Permalink
Fix npd
Browse files Browse the repository at this point in the history
  • Loading branch information
tgrondier committed Dec 2, 2024
1 parent d2a2288 commit e834d96
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions cmd/dbaas_user_show_redis.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,19 @@ func (c *dbaasUserShowCmd) showRedis(ctx context.Context) (output.Outputter, err
for _, u := range s.Users {

if u.Username == c.Username {
return &dbaasUserShowOutput{
o := &dbaasUserShowOutput{
Username: c.Username,
Password: u.Password,
Type: u.Type,
Redis: &dbaasRedisUserShowOutput{
}

if u.AccessControl != nil {
o.Redis = &dbaasRedisUserShowOutput{
AccessControl: *u.AccessControl,
},
}, nil
}
}

return o, nil
}

}
Expand Down

0 comments on commit e834d96

Please sign in to comment.