Remove some duplication related to swarm
Signed-off-by: David Gageot <david@gageot.net>
This commit is contained in:
parent
7400e6f965
commit
685995ea0d
|
@ -270,9 +270,7 @@ func (d *Driver) SetConfigFromFlags(flags drivers.DriverOptions) error {
|
||||||
d.SSHPort = flags.Int("openstack-ssh-port")
|
d.SSHPort = flags.Int("openstack-ssh-port")
|
||||||
d.KeyPairName = flags.String("openstack-keypair-name")
|
d.KeyPairName = flags.String("openstack-keypair-name")
|
||||||
d.PrivateKeyFile = flags.String("openstack-private-key-file")
|
d.PrivateKeyFile = flags.String("openstack-private-key-file")
|
||||||
d.SwarmMaster = flags.Bool("swarm-master")
|
d.SetSwarmConfigFromFlags(flags)
|
||||||
d.SwarmHost = flags.String("swarm-host")
|
|
||||||
d.SwarmDiscovery = flags.String("swarm-discovery")
|
|
||||||
|
|
||||||
return d.checkConfig()
|
return d.checkConfig()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue