Tput: unknown terminal "unknown" message in remote execution shell

Noticed the message "tput: unknown terminal “unknown” comes quite often when looking in the remote execution shell/debug console. Ex, ran an “dnf -y update” on one of my proxies and see (snippet):

  57: Running transaction
  58:  Running scriptlet: foreman-installer-katello-1:3.3.1-2.el8.noarch         1/1 
  59:  Preparing        :                                                        1/1 
  60:  Running scriptlet: foreman-debug-3.3.1-1.el8.noarch                       1/1 
  61:  Upgrading        : foreman-debug-3.3.1-1.el8.noarch                      1/22 
  62:  Running scriptlet: puppet-agent-7.20.0-1.el8.x86_64                      2/22 
  63:  Upgrading        : puppet-agent-7.20.0-1.el8.x86_64                      2/22 
  64:  Running scriptlet: puppet-agent-7.20.0-1.el8.x86_64                      2/22 
  65:  Upgrading        : foreman-installer-1:3.3.1-2.el8.noarch                3/22 
  66:  Running scriptlet: foreman-installer-1:3.3.1-2.el8.noarch                3/22 
  67:tput: unknown terminal "unknown"
  68:tput: unknown terminal "unknown"
  69:
  70:  Upgrading        : foreman-release-3.3.1-1.el8.noarch                    4/22 
  71:  Upgrading        : katello-repos-4.5.1-1.el8.noarch                      5/22 
  72:  Upgrading        : foreman-installer-katello-1:3.3.1-2.el8.noarch        6/22 
  73:  Running scriptlet: foreman-installer-katello-1:3.3.1-2.el8.noarch        6/22 
  74:tput: unknown terminal "unknown"
  75:tput: unknown terminal "unknown"
  76:tput: unknown terminal "unknown"
  77:tput: unknown terminal "unknown"
  78:
  79:  Running scriptlet: foreman-proxy-3.3.1-1.el8.noarch                      7/22 
  80:  Upgrading        : foreman-proxy-3.3.1-1.el8.noarch                      7/22 
  81:  Running scriptlet: foreman-proxy-3.3.1-1.el8.noarch                      7/22 
  82:  Upgrading        : katello-debug-4.5.1-1.el8.noarch                      8/22 

Everything works fine but just wondering if anyone knows where this "tput: unknown terminal “unknown” is coming from and if there is a way to “fix it”?
On Foreman/Katello 3.3.1/4.5.1.

What do you have set as TERM environment variable on those systems?