Browse Source

Fix panic when using openstack driver

The openstack driver was unusable because some cli flags were redifined.

That caused a runtime error like:

  create flag redefined: openstack-ssh-user
  panic: create flag redefined: openstack-ssh-user

Signed-off-by: Flavio Castelli <fcastelli@suse.com>
Flavio Castelli 3 years ago
parent
commit
497cd0ced0
1 changed files with 0 additions and 10 deletions
  1. 0
    10
      drivers/openstack/openstack.go

+ 0
- 10
drivers/openstack/openstack.go View File

@@ -182,16 +182,6 @@ func (d *Driver) GetCreateFlags() []mcnflag.Flag {
182 182
 			Usage:  "OpenStack SSH port",
183 183
 			Value:  defaultSSHPort,
184 184
 		},
185
-		mcnflag.StringFlag{
186
-			Name:  "openstack-ssh-user",
187
-			Usage: "OpenStack SSH user",
188
-			Value: defaultSSHUser,
189
-		},
190
-		mcnflag.IntFlag{
191
-			Name:  "openstack-ssh-port",
192
-			Usage: "OpenStack SSH port",
193
-			Value: defaultSSHPort,
194
-		},
195 185
 		mcnflag.IntFlag{
196 186
 			EnvVar: "OS_ACTIVE_TIMEOUT",
197 187
 			Name:   "openstack-active-timeout",

Loading…
Cancel
Save