diff --git a/bin/glance-scrubber b/bin/glance-scrubber index 64264c1330..f2b3cad9d7 100755 --- a/bin/glance-scrubber +++ b/bin/glance-scrubber @@ -63,10 +63,11 @@ if __name__ == '__main__': create_options(oparser) (options, args) = config.parse_options(oparser) - daemon = options.get('daemon') - try: conf, app = config.load_paste_app('glance-scrubber', options, args) + daemon = options.get('daemon') or \ + config.get_option(conf, 'daemon', type='bool', + default=False) if daemon: wakeup_time = int(conf.get('wakeup_time', 300))