SSH认证支持sudo

This commit is contained in:
刘祥超
2021-12-06 19:24:30 +08:00
parent 302daab824
commit c2908e17fa
10 changed files with 48 additions and 4 deletions

View File

@@ -30,6 +30,7 @@ func (this *CreateAction) RunPost(params struct {
PrivateKey string
Passphrase string
Description string
Su bool
Must *actions.Must
}) {
@@ -61,6 +62,7 @@ func (this *CreateAction) RunPost(params struct {
PrivateKey: params.PrivateKey,
Passphrase: params.Passphrase,
Description: params.Description,
Su: params.Su,
NodeId: 0,
})
if err != nil {