Skip to content

Commit

Permalink
fix npe during openstack machine-creation (#202)
Browse files Browse the repository at this point in the history
* fix npe during openstack machine-creation

* move map initialization into getConfig
  • Loading branch information
mrIncompetent authored May 7, 2018
1 parent 126a083 commit dce5d23
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/cloudprovider/provider/openstack/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,9 @@ func (p *provider) getConfig(s runtime.RawExtension) (*Config, *providerconfig.C
return nil, nil, nil, err
}
c.Tags = rawConfig.Tags
if c.Tags == nil {
c.Tags = map[string]string{}
}

return &c, &pconfig, &rawConfig, err
}
Expand Down

0 comments on commit dce5d23

Please sign in to comment.