Files
swift/.mailmap
Samuel Merritt 5568dd09b5 Fix swift_dir setting in WSGI servers
Theoretically, the various WSGI servers should be able to operate on a
system without /etc/swift/swift.conf. However, this doesn't actually
work. WSGI servers call utils.validate_configuration() before looking
for a swift_dir option, and that validation reads swift.conf from its
default location. Even if you set swift_dir=/some/where/else, the WSGI
servers require /etc/swift/swift.conf to exist.

This commit makes the WSGI servers call utils.set_swift_dir before
calling utils.validate_configuration.

Motivation: I'm working on testing some client software against actual
Swift, but my CI environment doesn't have /etc/swift at all, so the
test suite can't start the Swift daemons.

Change-Id: Ie0efee33e684b1c5bad6ee2191c187bb680de5f1
Signed-off-by: Samuel Merritt <smerritt@nvidia.com>
2025-10-07 12:43:31 -07:00

8.6 KiB