Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Conversation

niuzhenguo
Copy link
Member

What this PR does / why we need it:

Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #

Special notes for your reviewer:

Release note:

Copy link
Contributor

@freesky-edward freesky-edward left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

inline comment

// MAASV1 creates a ServiceClient that may be used with the v1 MAAS service.
func MAASV1(client *golangsdk.ProviderClient, eo golangsdk.EndpointOpts) (*golangsdk.ServiceClient, error) {
sc, err := initClientOpts(client, eo, "network")
sc.Endpoint = strings.Replace(sc.Endpoint, "vpc", "maas", 1)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can the MaaS endpoint be found in catalog list?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's already a NewMAASV1 for that in the catalog list, but we can't find the endpoint in HuaweiCloud :( So added this MAASV1 as a workaround.

@coveralls
Copy link

coveralls commented Dec 25, 2018

Pull Request Test Coverage Report for Build 303

  • 0 of 7 (0.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.03%) to 69.299%

Changes Missing Coverage Covered Lines Changed/Added Lines %
openstack/client.go 0 7 0.0%
Totals Coverage Status
Change from base Build 302: -0.03%
Covered Lines: 11778
Relevant Lines: 16996

💛 - Coveralls

Copy link
Contributor

@freesky-edward freesky-edward left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@freesky-edward freesky-edward merged commit f78fa72 into huaweicloud:master Dec 25, 2018
@niuzhenguo niuzhenguo deleted the add-maas-client branch December 25, 2018 07:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants