]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks/cephadm: work around .git suffix on ceph_repo 32787/head
authorSage Weil <sage@redhat.com>
Thu, 23 Jan 2020 14:25:34 +0000 (08:25 -0600)
committerSage Weil <sage@redhat.com>
Thu, 23 Jan 2020 14:25:34 +0000 (08:25 -0600)
githubusercontent.com doesn't like the .git suffix

Signed-off-by: Sage Weil <sage@redhat.com>
qa/tasks/cephadm.py

index 60118d02522a75f5ae43da9e740136a20c0e05e5..aa3244fa3fb969b7140da54adfd869c528609260 100644 (file)
@@ -91,6 +91,7 @@ def download_cephadm(ctx, config, ref):
         if git_url.startswith('https://github.com/'):
             # git archive doesn't like https:// URLs, which we use with github.
             rest = git_url.split('https://github.com/', 1)[1]
+            rest.replace('.git/', '/')  # no .git suffix
             ctx.cluster.run(
                 args=[
                     'curl', '--silent',