Issue importing environments from foreman

Problem:
When I click the import environments in classes from Foreman it shows no changes the folders definitely have classes. When I add the folder specifically it shows up but
/etc/puppetlabs/code/environments doesn’t work for some reason.

Expected outcome:
Able to import environments from /etc/puppetlabs/code/environments

Foreman and Proxy versions:
3.0.1

Foreman and Proxy plugin versions:
3.0.1
Distribution and version:

Other relevant data:
It used to work prior but when I checked the postgres db for the puppet classes theres no records that match the KT_environment ID.

Looks like I figured it out. It seems the basemodulepath for puppet had the /etc/puppetlabs/code/environments folder referenced, which caused an issue since it was also the environmentpath so it got confused and couldn’t find the modules folder within. I removed that path and it worked.