]> git.apps.os.sepia.ceph.com Git - teuthology.git/commit
tasks: Use '_' instead of '-' in names
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:55:57 +0000 (10:55 -0500)
commit80b8920853f1182ff18bada67c7afbebc0fd7030
tree6b5560e119898b8319490a9d5b56ce36be13b783
parentf34ebd54349d3ecd6ffd3a598be92a2db02bcc97
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]