#43 Query errata repo IDs
Merged by cqi. Opened by cqi.
cqi/freshmaker query-errata-repo-ids  into  master

Download 43.patch
no initial comment

How about add:

self.server_rest_url = self.server_url + '/api/v1'

I think the name is not so good, how about keep _errata_get as it was, and rename this to _errata_rest_get?

or add rest_api=False in _errata_get, and then:

server = self.server_rest_url if rest_api else self.server_url
def _errata_rest_get(self, endpoint): 
    return self._errata_get(self, endpoint, rest_api=True)

2 new commits added

  • Query errata repo IDs
  • Avoid repeating api/v1/ in Errata

Rename _errata_http_api to _errata_http_get.
Rename _errata_rest_api to _errata_rest_get.

@qwan: Does it look OK now?

Pull-Request has been merged by cqi

Metadata