Skip to content

Commit

Permalink
Fixed bug on reload
Browse files Browse the repository at this point in the history
- reload bug was causing providers to be compared against existing ones
by name and not name
  • Loading branch information
tlm committed Nov 6, 2018
1 parent 840b885 commit ecc7c20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/config/provider_factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func ToProviderStore(cnfProviders []Provider, store *provider.Store) (*provider.
var err error
var genProvider provider.Provider
if p, exists := store.Fetch(cnfProvider.Name); exists {
genProvider, err = ToProviderOnUpdate(cnfProvider.Name,
genProvider, err = ToProviderOnUpdate(cnfProvider.Id,
cnfProvider.Options, p)
} else {
genProvider, err = ToProvider(cnfProvider.Id, cnfProvider.Options)
Expand Down

0 comments on commit ecc7c20

Please sign in to comment.