Skip to content

Commit

Permalink
Dev: bootstrap: Skip ssh-agent warning when cluster is running
Browse files Browse the repository at this point in the history
Since at this time the ssh stage has finished, we can skip the warning
  • Loading branch information
liangxin1300 committed Dec 16, 2024
1 parent 2098152 commit e46d904
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crmsh/bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ def check_prereqs():
logger.warning("{} is not configured to start at system boot.".format(timekeeper))
warned = True

if _context.use_ssh_agent == False and 'SSH_AUTH_SOCK' in os.environ:
if not _context.cluster_is_running and _context.use_ssh_agent == False and 'SSH_AUTH_SOCK' in os.environ:
msg = "$SSH_AUTH_SOCK is detected. As a tip, using the --use-ssh-agent option could avoid generate local root ssh keys on cluster nodes."
logger.warning(msg)
warned = True
Expand Down

0 comments on commit e46d904

Please sign in to comment.