Skip to content

Commit d522125

Browse files
author
Yue Tu
committed
address comments
1 parent c998bf6 commit d522125

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

doc/overview.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ credentials storage to authenticate. If that fails either, an error message will
211211

212212
For CodeCommit repos, please make sure you have completed the authentication setup: https://docs.aws.amazon.com/codecommit/latest/userguide/setting-up.html.
213213
2FA is not supported by CodeCommit, so ``2FA_enabled`` should not be provided. There is no token in CodeCommit, so
214-
``token`` should not be provided too. If ``repo`` is an SSH URL, the requirements are the same as GitHub repos.
214+
``token`` should not be provided either. If ``repo`` is an SSH URL, the requirements are the same as GitHub repos.
215215
If ``repo`` is an HTTPS URL, ``username``+``password`` will be used for authentication if they are provided; otherwise,
216216
Python SDK will try to use either CodeCommit credential helper or local credential storage for authentication.
217217

src/sagemaker/git_utils.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -204,9 +204,9 @@ def _clone_command_for_codecommit(git_config, dest_dir):
204204
if not is_https and not is_ssh:
205205
raise ValueError("Invalid Git url provided.")
206206
if "2FA_enabled" in git_config:
207-
warnings.warn("CodeCommit does not support 2FA, '2FA_enabled' is ignored.")
207+
warnings.warn("CodeCommit does not support 2FA, '2FA_enabled' will be ignored.")
208208
if "token" in git_config:
209-
warnings.warn("There are no tokens in CodeCommit, the token provided is ignored.")
209+
warnings.warn("There are no tokens in CodeCommit, the token provided will be ignored.")
210210
if is_ssh:
211211
_clone_command_for_ssh(git_config, dest_dir)
212212
else:

0 commit comments

Comments
 (0)