fixes #31179 by appling the same logic as used in the nexus module
fixes #31179 by appling the same logic as used in the nexus module

saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt,saltstack/salt