local err_msg=
local fqdn=$( hostname -f )
local cmd="${rhsm} register --no-progress-messages --username '${rhsm_user}' --password '${rhsm_pwd}' "
+ local cmd_out="${rhsm} register --no-progress-messages --username '${rhsm_user}' --password '********' "
cmd+="--auto-attach --name '${fqdn}'"
+ cmd_out+="--auto-attach --name '${fqdn}'"
if [[ -z "${rhsm_user}" || -z "${rhsm_pwd}" ]] ; then
err_msg="Either RHSM_USER or RHSM_PWD are not defined as meta variables."
else
if [[ -x "${rhsm}" ]] ; then
echo
- echo "Executing: ${cmd}"
+ echo "Executing: ${cmd_out}"
if [[ -n "${rhsm_system_id}" ]] ; then
if eval ${cmd} --consumerid "${rhsm_system_id}" ; then
rhsm_registred='y'