Skip to content

Commit f62fece

Browse files
author
Adam Dyess
committed
snapcraft.io access should use https requests
1 parent 4c49c1f commit f62fece

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

juju/charmhub.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ def request_charmhub_with_retry(self, url, retries):
2121
def get_charm_id(self, charm_name):
2222
conn, headers, path_prefix = self.model.connection().https_connection()
2323

24-
url = "http://api.snapcraft.io/v2/charms/info/{}".format(charm_name)
24+
url = "https://api.snapcraft.io/v2/charms/info/{}".format(charm_name)
2525
_response = self.request_charmhub_with_retry(url, 5)
2626
response = json.loads(_response.text)
2727
return response['id'], response['name']
2828

2929
def is_subordinate(self, charm_name):
3030
conn, headers, path_prefix = self.model.connection().https_connection()
3131

32-
url = "http://api.snapcraft.io/v2/charms/info/{}?fields=default-release.revision.subordinate".format(charm_name)
32+
url = "https://api.snapcraft.io/v2/charms/info/{}?fields=default-release.revision.subordinate".format(charm_name)
3333
_response = self.request_charmhub_with_retry(url, 5)
3434
response = json.loads(_response.text)
3535
return 'subordinate' in response['default-release']['revision']

0 commit comments

Comments
 (0)