From 86b3f27ad376a3edb0e60462cd57a3859f5e1163 Mon Sep 17 00:00:00 2001 From: Sergii Golovatiuk Date: Wed, 27 Nov 2024 01:33:03 +0100 Subject: [PATCH] Specify undercloud as host Without specifying a host rsync command is not assembled correctly and fails. Also it doesn't allow it to run outside of undercloud. This patch sets undercloud as host allowing rsync to work properly Closes: OSPRH-11928 --- pkg/collectcfg/fetch.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/collectcfg/fetch.go b/pkg/collectcfg/fetch.go index 5cd6840..3feae86 100644 --- a/pkg/collectcfg/fetch.go +++ b/pkg/collectcfg/fetch.go @@ -220,7 +220,7 @@ func SyncConfigDir(localPath string, remotePath string, sshCmd string, underclou return err } if undercloud != "" { - cmd = "rsync -a -e '" + sshCmd + "' :" + remotePath + " " + localPath + cmd = "rsync -a -e '" + sshCmd + " " + undercloud + "' :" + remotePath + " " + localPath common.ExecCmd(cmd) } else { hosts := GetListHosts(undercloud)