diff --git a/bootstrap-salt.sh b/bootstrap-salt.sh index 67bcc90..a4d3e48 100644 --- a/bootstrap-salt.sh +++ b/bootstrap-salt.sh @@ -4139,8 +4139,12 @@ enabled=1 enabled_metadata=1 _eof - fetch_url="${HTTP_VAL}://${_REPO_URL}/${__PY_VERSION_REPO}/redhat/${DISTRO_MAJOR_VERSION}/${CPU_ARCH_L}/${repo_rev}/" - __rpm_import_gpg "${fetch_url}${gpg_key}" || return 1 + Field_Separator=$IFS + IFS=, + for key in $gpg_key; do + __rpm_import_gpg "$key" || return 1 + done + IFS=$Field_Separator yum clean metadata || return 1 elif [ "$repo_rev" != "latest" ]; then echowarn "salt.repo already exists, ignoring salt version argument."