]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Handle branch names containing slashes 1193/head
authorAdam Wolfe Gordon <awg@digitalocean.com>
Mon, 23 Jul 2018 21:29:33 +0000 (15:29 -0600)
committerAdam Wolfe Gordon <awg@digitalocean.com>
Mon, 23 Jul 2018 21:37:25 +0000 (15:37 -0600)
A branch name containing a slash is perfectly legal in git, but
teuthology uses branch names verbatim in run names, which causes POSTs
to fail when submitting runs to paddles. Replace all '/' in run names
with ':' to allow for branches with slashes in their names.

Signed-off-by: Adam Wolfe Gordon <awg@digitalocean.com>
teuthology/suite/run.py

index 1388fcbd2647010a0537a83cea5ab5d7fe21199f..5e2f2deda8e50557bd50eb73c9ba12384e9c34ad 100644 (file)
@@ -74,7 +74,7 @@ class Run(object):
                 user, str(timestamp), self.args.suite, self.args.ceph_branch,
                 self.args.kernel_branch or '-', self.args.kernel_flavor, worker
             ]
-        )
+        ).replace('/', ':')
 
     def create_initial_config(self):
         """