1. PyPA
  2. Python Packaging Authority Projects
  3. pypi

Commits

Donald Stufft  committed 4db6c53

Include the service id in the url

  • Participants
  • Parent commits a01cf3f
  • Branches default

Comments (0)

Files changed (1)

File store.py

View file
  • Ignore whitespace
             session = requests.session()
             for package in self._changed_packages:
                 normalized_name = normalize_package_name(package)
-                path = "/service/%(id)s/purge/pkg~%(name)s" % {"id": None, "name": normalized_name}
+                path = "/service/%(id)s/purge/pkg~%(name)s" % {
+                                        "id": self.config.fastly_service_id,
+                                        "name": normalized_name,
+                                    }
                 url = urlparse.urljoin(self.config.fastly_api_domain, path)
                 resp = session.post(url,
                     headers={