mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-12-02 19:57:42 +08:00
fix add node not set password bug
This commit is contained in:
parent
e41b11909a
commit
6bfb0c651f
@ -618,6 +618,9 @@ func NewCmdNode() cli.Command {
|
||||
if c.String("root-pass") != "" && c.String("private-key") != "" {
|
||||
showError("Options private-key and root-pass are conflicting")
|
||||
}
|
||||
if c.String("root-pass") == "" && c.String("private-key") == "" {
|
||||
showError("Options private-key and root-pass must set one")
|
||||
}
|
||||
if c.String("role") != "compute" && c.String("role") != "manage" && c.String("role") != "gateway" {
|
||||
showError("node role only support `compute`, `manage` and `gateway`")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user