mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Update tests/framework/e2e/etcdctl.go
address comment Co-authored-by: Benjamin Wang <wachao@vmware.com> Signed-off-by: Oleg Guba <oleg@dropbox.com>
This commit is contained in:
parent
24831a0242
commit
44bc007494
@ -467,11 +467,7 @@ func (ctl *EtcdctlV3) AlarmDisarm(ctx context.Context, _ *clientv3.AlarmMember)
|
|||||||
|
|
||||||
func (ctl *EtcdctlV3) AuthEnable(ctx context.Context) (*clientv3.AuthEnableResponse, error) {
|
func (ctl *EtcdctlV3) AuthEnable(ctx context.Context) (*clientv3.AuthEnableResponse, error) {
|
||||||
args := []string{"auth", "enable"}
|
args := []string{"auth", "enable"}
|
||||||
cmd, err := SpawnCmd(append(ctl.cmdArgs(), args...), nil)
|
cmd, err := SpawnCmd(ctl.cmdArgs(args...), nil)
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
err = cmd.Send(strings.Join(args, " "))
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user