Merge pull request #8123 from ulyssessouza/fix-dict-access

Fix dics access on keep-prefix option for up
This commit is contained in:
Anca Iordache 2021-02-16 20:16:50 +01:00 committed by GitHub
commit e688006444
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1121,7 +1121,7 @@ class TopLevelCommand:
detached = options.get('--detach') detached = options.get('--detach')
no_start = options.get('--no-start') no_start = options.get('--no-start')
attach_dependencies = options.get('--attach-dependencies') attach_dependencies = options.get('--attach-dependencies')
keep_prefix = not options['--no-log-prefix'] keep_prefix = not options.get('--no-log-prefix')
if detached and (cascade_stop or exit_value_from or attach_dependencies): if detached and (cascade_stop or exit_value_from or attach_dependencies):
raise UserError( raise UserError(