Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
hzxuzhonghu committed Nov 8, 2019
1 parent 0dc03f3 commit b8707cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/controllers/job/plugins/ssh/ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import (
"encoding/pem"
"flag"
"fmt"
"volcano.sh/volcano/pkg/controllers/job/plugins/env"

"golang.org/x/crypto/ssh"

Expand All @@ -34,6 +33,7 @@ import (
batch "volcano.sh/volcano/pkg/apis/batch/v1alpha1"
"volcano.sh/volcano/pkg/apis/helpers"
jobhelpers "volcano.sh/volcano/pkg/controllers/job/helpers"
"volcano.sh/volcano/pkg/controllers/job/plugins/env"
"volcano.sh/volcano/pkg/controllers/job/plugins/interface"
)

Expand Down Expand Up @@ -194,7 +194,7 @@ func (sp *sshPlugin) addFlags() {
// TODO: deprecate no-root
flagSet.BoolVar(&sp.noRoot, "no-root", sp.noRoot, "The ssh user, --no-root is common user")
flagSet.StringVar(&sp.sshKeyFilePath, "ssh-key-file-path", sp.sshKeyFilePath, "The path used to store "+
"ssh private and public keys, by default it is `/root/.ssh`")
"ssh private and public keys, it is `/root/.ssh` by default")

if err := flagSet.Parse(sp.pluginArguments); err != nil {
glog.Errorf("plugin %s flagset parse failed, err: %v", sp.Name(), err)
Expand Down

0 comments on commit b8707cb

Please sign in to comment.