]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commit
tasks: Use '_' instead of '-' in names emperor
authorJohn Spray <john.spray@inktank.com>
Mon, 12 May 2014 09:55:58 +0000 (10:55 +0100)
committerZack Cerza <zack@cerza.org>
Fri, 6 Jun 2014 15:56:26 +0000 (10:56 -0500)
commite490e1e57c2f13af0045e93e7b8fc9b4cb77a4e9
tree9503c890d2b2f107c2a40bb44407971211bdc98d
parent312022d91297f8c0923634ebe8c53727dcaab2b1
tasks: Use '_' instead of '-' in names

Python modules are not allowed to contain hyphens
in the name.  Using hyphens only works here because
we're using low level __import__.

Change run_tasks to replace '-' with '_' when reading
configs, and rename the task modules to have valid
python module names.

Aside from general hygiene, the motivation to do this
is to allow one task to build on code in another
task by importing it.

Signed-off-by: John Spray <john.spray@inktank.com>
(cherry picked from commit 79dfe2cbefbbf14b69ae10c44a89a4fe45fedbe5)
17 files changed:
teuthology/run_tasks.py
teuthology/task/ceph-deploy.py [deleted file]
teuthology/task/ceph-fuse.py [deleted file]
teuthology/task/ceph_deploy.py [new file with mode: 0644]
teuthology/task/ceph_fuse.py [new file with mode: 0644]
teuthology/task/cifs-mount.py [deleted file]
teuthology/task/cifs_mount.py [new file with mode: 0644]
teuthology/task/radosgw-admin-rest.py [deleted file]
teuthology/task/radosgw-admin.py [deleted file]
teuthology/task/radosgw-agent.py [deleted file]
teuthology/task/radosgw_admin.py [new file with mode: 0644]
teuthology/task/radosgw_admin_rest.py [new file with mode: 0644]
teuthology/task/radosgw_agent.py [new file with mode: 0644]
teuthology/task/rest-api.py [deleted file]
teuthology/task/rest_api.py [new file with mode: 0644]
teuthology/task/rgw-logsocket.py [deleted file]
teuthology/task/rgw_logsocket.py [new file with mode: 0644]