Merge ~cjwatson/snapstore-client:snapident-endpoint-names into snapstore-client:master

Proposed by Colin Watson
Status: Merged
Merged at revision: 4255edaa132c717aa6d89d299ea68eec18d8ebe3
Proposed branch: ~cjwatson/snapstore-client:snapident-endpoint-names
Merge into: snapstore-client:master
Diff against target: 22 lines (+2/-2)
1 file modified
siab_client/webservices.py (+2/-2)
Reviewer Review Type Date Requested Status
Matt Goodall (community) Approve
Review via email: mp+326015@code.launchpad.net

Commit message

Update snapident API URLs

To post a comment you must log in.
Revision history for this message
Matt Goodall (matt-goodall) wrote :

makes sense, +1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/siab_client/webservices.py b/siab_client/webservices.py
index 6747302..792fd67 100644
--- a/siab_client/webservices.py
+++ b/siab_client/webservices.py
@@ -19,7 +19,7 @@ def get_snap_id_for_name(snap_name, series):
19 """19 """
20 ident_root = config.read_config()['services']['snapident']20 ident_root = config.read_config()['services']['snapident']
21 resp = requests.post(21 resp = requests.post(
22 urllib.parse.urljoin(ident_root, '/fetch-blobs'),22 urllib.parse.urljoin(ident_root, '/snaps/filter'),
23 json={23 json={
24 'filters': [{24 'filters': [{
25 'snap_name': snap_name,25 'snap_name': snap_name,
@@ -54,7 +54,7 @@ def register_snap_name_and_blob(snap_id, snap_name, series, snap_blob,
54 if country_blacklist is not None:54 if country_blacklist is not None:
55 data['country_blacklist'] = country_blacklist55 data['country_blacklist'] = country_blacklist
56 resp = requests.post(56 resp = requests.post(
57 urllib.parse.urljoin(ident_root, '/create-snaps'),57 urllib.parse.urljoin(ident_root, '/snaps/update'),
58 json={'snaps': [data]})58 json={'snaps': [data]})
59 if resp.status_code == 200:59 if resp.status_code == 200:
60 print(60 print(

Subscribers

People subscribed via source and target branches

to all changes: