Skip to content

Commit

Permalink
Issue #4054 - Bug: cannot publish an nmp manifest with * for the file…
Browse files Browse the repository at this point in the history
… list

Signed-off-by: Max McAdam <max@fredcom.com>
  • Loading branch information
MaxMcAdam authored and LiilyZhang committed May 7, 2024
1 parent b327d54 commit a35029d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions cli/node_management/manifest.go
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,9 @@ func checkManifestFile(org, credToUse string, manifestData AgentUpgradeManifestD
}
mmsSoftwareFiles := getAgentFiles(org, credToUse, "agent_software_files", manSoftwareFilesVersion)
for _, manFile := range manSoftwareFiles {
if manFile == "*" {
continue
}
found := false
for _, mmsFile := range mmsSoftwareFiles {
if mmsFile.AgentFileName == manFile {
Expand Down Expand Up @@ -296,6 +299,9 @@ func checkManifestFile(org, credToUse string, manifestData AgentUpgradeManifestD
}
mmsCertFiles := getAgentFiles(org, credToUse, "agent_cert_files", manCertFilesVersion)
for _, manFile := range manCertFiles {
if manFile == "*" {
continue
}
found := false
for _, mmsFile := range mmsCertFiles {
if mmsFile.AgentFileName == manFile {
Expand Down Expand Up @@ -324,6 +330,9 @@ func checkManifestFile(org, credToUse string, manifestData AgentUpgradeManifestD
}
mmsConfigFiles := getAgentFiles(org, credToUse, "agent_config_files", manConfigFilesVersion)
for _, manFile := range manConfigFiles {
if manFile == "*" {
continue
}
found := false
for _, mmsFile := range mmsConfigFiles {
if mmsFile.AgentFileName == manFile {
Expand Down

0 comments on commit a35029d

Please sign in to comment.