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 17, 2024
1 parent 562ce84 commit 3d88fd0
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 3d88fd0

Please sign in to comment.