Skip to content

Commit 14c2565

Browse files
authored
Merge pull request #1035 from sphinx-contrib/note-conflicting-auth-options
config: detail conflicting auth options
2 parents 25f9f4d + fcbafc2 commit 14c2565

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

sphinxcontrib/confluencebuilder/config/notifications.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,15 @@ def warnings(validator):
7878
'confluence_server_pass',
7979
]
8080

81-
auth_key_count = 0
81+
auth_keys_used = []
8282
for option in auth_keys:
8383
value = getattr(config, option)
8484
if value:
85-
auth_key_count += 1
85+
auth_keys_used.append(option)
8686

87-
if auth_key_count > 1:
88-
logger.warn('multiple authentication options configured')
87+
if len(auth_keys_used) > 1:
88+
logger.warn('multiple authentication options configured; only one of '
89+
'these options should be set: ' + ', '.join(auth_keys_used))
8990

9091
# check if any user defined mime types are unknown
9192
if config.confluence_additional_mime_types is not None:

0 commit comments

Comments
 (0)