Only pass the project if it is specified

pull/382/head
Justin Santa Barbara 13 years ago
parent b6a6c8571b
commit 47ee7ca977

@ -40,10 +40,13 @@ func (c *AccessConfig) Auth() (gophercloud.AccessProvider, error) {
authoptions := gophercloud.AuthOptions{
Username: username,
Password: password,
TenantName: project,
AllowReauth: true,
}
if project != "" {
authoptions.TenantName = project
}
return gophercloud.Authenticate(provider, authoptions)
}

Loading…
Cancel
Save