diff options
author | Clay Gerrard <clay.gerrard@gmail.com> | 2023-04-04 15:42:36 -0500 |
---|---|---|
committer | Clay Gerrard <clay.gerrard@gmail.com> | 2023-04-14 14:51:23 -0500 |
commit | c95f8e6c050bbe9244122100ca90e6f335c73ab7 (patch) | |
tree | 492996cf0e8477b81c11a18e77e243b258dafa8a /swift | |
parent | 8e875df65a3158aeb80318c77fd06662c0ed6d52 (diff) | |
download | swift-c95f8e6c050bbe9244122100ca90e6f335c73ab7.tar.gz |
tests for wsgi/daemon config parsing
Change-Id: Ibb82555830b88962cc765fc88281ca42a9ce9d9c
Diffstat (limited to 'swift')
-rw-r--r-- | swift/common/daemon.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/swift/common/daemon.py b/swift/common/daemon.py index 59a661189..773ca9424 100644 --- a/swift/common/daemon.py +++ b/swift/common/daemon.py @@ -315,7 +315,9 @@ def run_daemon(klass, conf_file, section_name='', once=False, **kwargs): logger.notice('Starting %s', os.getpid()) try: - DaemonStrategy(klass(conf), logger).run(once=once, **kwargs) + d = klass(conf) + DaemonStrategy(d, logger).run(once=once, **kwargs) except KeyboardInterrupt: logger.info('User quit') logger.notice('Exited %s', os.getpid()) + return d |