rackspace / gophercloud

A Go SDK for OpenStack. IN FEATURE FREEZE. See Issue #592
http://gophercloud.io
Other
456 stars 185 forks source link

Mismatch in the Getting Started with Identity v3 #633

Open sbezverk opened 7 years ago

sbezverk commented 7 years ago

from the example taken line of code, client, err := openstack.NewIdentityV3(provider, gophercloud.EndpointOpts{ Region: "RegionOne", }) when compiled, generates this error: ./main.go:86: assignment count mismatch: 2 = 1 ./main.go:88: too many arguments in call to openstack.NewIdentityV3 have (gophercloud.ProviderClient, gophercloud.EndpointOpts) want (gophercloud.ProviderClient)

Please advise where the issue is.

sbezverk commented 7 years ago

also openstack.NewIdentityV3 call does not return err as it is mentioned in the documentation.