Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
MikhailBurdukov committed Nov 19, 2024
1 parent 610d445 commit 1112dc2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion ch_tools/chadmin/cli/ch_s3_credentials_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ def update_s3_credentials(ctx, endpoint, random_sleep):
storage = _add_node(
doc, _add_node(doc, _add_node(doc, doc, "clickhouse"), "s3"), "cloud_storage"
)
endpoint_header = "access_header" if match_ch_version(ctx, min_version="24.11") else "header"
endpoint_header = (
"access_header" if match_ch_version(ctx, min_version="24.11") else "header"
)
_add_node(doc, storage, "endpoint").appendChild(doc.createTextNode(endpoint))
_add_node(doc, storage, endpoint_header).appendChild(
doc.createTextNode(
Expand Down
2 changes: 1 addition & 1 deletion tests/features/s3_credentials.feature
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Feature: ch_s3_credentials tool
</s3>
</clickhouse>
"""
## Commnted because version `latest` will be greater than any other version.
## Commented because version `latest` will be greater than any other version.
##@require_version_24.11
##Examples:
##|header|
Expand Down

0 comments on commit 1112dc2

Please sign in to comment.