Browse Source

Remove some duplication related to swarm

Signed-off-by: David Gageot <david@gageot.net>
David Gageot 3 years ago
parent
commit
685995ea0d
1 changed files with 1 additions and 3 deletions
  1. 1
    3
      drivers/openstack/openstack.go

+ 1
- 3
drivers/openstack/openstack.go View File

@@ -270,9 +270,7 @@ func (d *Driver) SetConfigFromFlags(flags drivers.DriverOptions) error {
270 270
 	d.SSHPort = flags.Int("openstack-ssh-port")
271 271
 	d.KeyPairName = flags.String("openstack-keypair-name")
272 272
 	d.PrivateKeyFile = flags.String("openstack-private-key-file")
273
-	d.SwarmMaster = flags.Bool("swarm-master")
274
-	d.SwarmHost = flags.String("swarm-host")
275
-	d.SwarmDiscovery = flags.String("swarm-discovery")
273
+	d.SetSwarmConfigFromFlags(flags)
276 274
 
277 275
 	return d.checkConfig()
278 276
 }

Loading…
Cancel
Save