mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-12-02 19:57:42 +08:00
fix some bugs golint not found
This commit is contained in:
parent
eafe220983
commit
32b7f10128
@ -585,6 +585,11 @@ func NewCmdNode() cli.Command {
|
||||
Usage: "hosts file path",
|
||||
Value: "/opt/rainbond/rainbond-ansible/inventory/hosts",
|
||||
},
|
||||
cli.StringFlag{
|
||||
Name: "config-file-path",
|
||||
Usage: "install config path",
|
||||
Value: "/opt/rainbond/rainbond-ansible/scripts/installer/global.sh",
|
||||
},
|
||||
},
|
||||
Action: installNodeCommand,
|
||||
},
|
||||
@ -713,7 +718,7 @@ func installNodeCommand(c *cli.Context) error {
|
||||
nodes, err := clients.RegionClient.Nodes().List()
|
||||
handleErr(err)
|
||||
//write ansible hosts file
|
||||
WriteHostsFile(c.String("hosts-file-path"), nodes)
|
||||
WriteHostsFile(c.String("hosts-file-path"), c.String("config-file-path"), nodes)
|
||||
installNode(node)
|
||||
return nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user