From edf7c7e2074b925e3bb81fe13c7590332bbf06ea Mon Sep 17 00:00:00 2001 From: Felix Stieglitz <6287093+tinyoverflow@users.noreply.github.com> Date: Tue, 7 May 2024 23:12:38 +0200 Subject: [PATCH] Fix galaxy requirement.yml paths --- db_lib/AnsibleApp.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/db_lib/AnsibleApp.go b/db_lib/AnsibleApp.go index 2bd3c2cf..6359f998 100644 --- a/db_lib/AnsibleApp.go +++ b/db_lib/AnsibleApp.go @@ -91,7 +91,7 @@ func (t *AnsibleApp) getRepoPath() string { } func (t *AnsibleApp) installRolesRequirements() error { - requirementsFilePath := fmt.Sprintf("%s/roles/requirements.yml", t.getRepoPath()) + requirementsFilePath := path.Join(t.getRepoPath(), "roles", "requirements.yml") requirementsHashFilePath := fmt.Sprintf("%s.md5", requirementsFilePath) if _, err := os.Stat(requirementsFilePath); err != nil { @@ -126,7 +126,7 @@ func (t *AnsibleApp) GetPlaybookDir() string { } func (t *AnsibleApp) installCollectionsRequirements() error { - requirementsFilePath := path.Join(t.GetPlaybookDir(), "collections", "requirements.yml") + requirementsFilePath := path.Join(t.getRepoPath(), "collections", "requirements.yml") requirementsHashFilePath := fmt.Sprintf("%s.md5", requirementsFilePath) if _, err := os.Stat(requirementsFilePath); err != nil {