Staging instance, all changes can be removed at any time

Skip to content

client: Migrate to _post method call to stop deprecation warnings

Without this, this currently logs verbosely about it in worker execution logs for example [1].

Apr 28 09:52:08 worker3 python3[85609]: [2022-04-28 09:52:08,348: INFO/MainProcess] Received task: swh.loader.git.tasks.UpdateGitRepository[112ce5ff-e3d9-42a3-a0f2-a136a0f93c69]
Apr 28 09:52:14 worker3 python3[85616]: [2022-04-28 09:52:14,463: INFO/ForkPoolWorker-1] Load origin 'https://github.com/aquila/openwrt' with type 'git'
Apr 28 09:52:37 worker3 python3[85616]: Enumerating objects: 194170, done.
Apr 28 09:52:37 worker3 python3[85616]: /usr/lib/python3/dist-packages/swh/storage/api/client.py:45: DeprecationWarning: Call to deprecated method post. (Use _post instead) -- Deprecated since version 2.1.0.
Apr 28 09:52:37 worker3 python3[85616]:   return self.post("content/add", {"content": content})
Apr 28 09:52:37 worker3 python3[85616]: Total 194170 (delta 0), reused 0 (delta 0), pack-reused 194170
Apr 28 09:52:37 worker3 python3[85616]: [2022-04-28 09:52:37,152: INFO/ForkPoolWorker-1] Listed 6 refs for repo https://github.com/aquila/openwrt

Migrated from D7709 (view on Phabricator)

Merge request reports

Loading