Puppet 5 clients using wrong environent with foreman 1.20.1

Problem:
I’ve set several hosts to the environment “produzione” but when i run puppet agent i see they’re still using “production” default env, even if ENC reports the right env.

puppet agent -t
Info: Using configured environment ‘production’
[…]

Puppet agent version is puppet-agent-5.5.0-2.el7sat.x86_64

Expected outcome:

I’m expecting puppet agent to read the environment from ENC. What should i check? in ENC output environment is correctly set.

Foreman and Proxy versions:
I’m using the embedded proxy, foreman package version is 1.20.2, and proxy reported version is 1.20.1

Foreman and Proxy plugin versions:

Distribution and version:

RHEL 7 on server and clients with puppet agent 5.5.0 and different rhel releases (6, 7)

Other relevant data: