Skip to content

Commit

Permalink
revert neutron unauth
Browse files Browse the repository at this point in the history
  • Loading branch information
M09Ic committed Jun 23, 2024
1 parent e945a5a commit a50b2c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
13 changes: 1 addition & 12 deletions internal/plugin/neutron/neutron.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,10 @@ func (s *NeutronPlugin) Name() string {
}

func (s *NeutronPlugin) Unauth() (bool, error) {
payload := map[string]interface{}{}
if s.Task.Username != "" {
payload["username"] = s.Task.Username
}
if s.Task.Password != "" {
payload["password"] = s.Task.Password
}
if template, ok := pkg.TemplateMap[s.Service]; ok {
var err error
var usr, pwd string
if len(payload) > 0 {
usr, pwd, err = NeutronScan(s.Scheme, s.Address(), payload, template)
} else {
usr, pwd, err = NeutronScan(s.Scheme, s.Address(), nil, template)
}
usr, pwd, err = NeutronScan(s.Scheme, s.Address(), nil, template)
if err != nil {
return false, err
}
Expand Down
2 changes: 1 addition & 1 deletion templates

0 comments on commit a50b2c0

Please sign in to comment.