From e46d9048eba77da07fa45b102781a9a498983b68 Mon Sep 17 00:00:00 2001 From: xin liang Date: Mon, 16 Dec 2024 15:21:30 +0800 Subject: [PATCH] Dev: bootstrap: Skip ssh-agent warning when cluster is running Since at this time the ssh stage has finished, we can skip the warning --- crmsh/bootstrap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crmsh/bootstrap.py b/crmsh/bootstrap.py index 6fef5c130..1346533fe 100644 --- a/crmsh/bootstrap.py +++ b/crmsh/bootstrap.py @@ -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