]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: add comment explaining docker.io grep test
authorKen Dreyer <kdreyer@redhat.com>
Wed, 16 Feb 2022 14:48:59 +0000 (09:48 -0500)
committerAdam King <adking@redhat.com>
Tue, 3 May 2022 00:48:34 +0000 (20:48 -0400)
Add a comment explain this docker.io grep count test, since it's
difficult to understand the purpose from simply reading the code.

Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
(cherry picked from commit 14c5538a311542e1466a9426c35108ce3e394338)

src/cephadm/tox.ini

index 324e725394b342420a936014b3f9cd493a34a7ec..4f8d3d7af2269735e4c772a7d0f770f41e988c19 100644 (file)
@@ -63,3 +63,5 @@ deps =
 commands =
     flake8 --config=tox.ini {posargs:cephadm}
     bash -c "test $(grep 'docker.io' cephadm | wc -l) == 13"
+# Downstream distributions may choose to alter this "docker.io" number,
+# to make sure no new references to docker.io are creeping in unnoticed.