Import hosts_and_facts rakejob resets environments to "production"
When I run the following rakejob:
rake puppet:import:hosts_and_facts RAILS_ENV=production
It re-imports all of my hosts and resets their environments to "production," even though they have a custom environment defined in the fact file:
root@fc-pupm01:/var/lib/puppet/yaml/facts$ grep fcprod *
cobtest.corp.follett.com.yaml: environment: fcprod
fc-cobbler01.corp.follett.com.yaml: environment: fcprod
Example fact file is attached.
fixes #330 - Import hosts_and_facts rakejob resets environments to production