HomePhorge

(PUP-3934) Propagate environment to Resource initializer
50d131be7396Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(PUP-3934) Propagate environment to Resource initializer

Prior to this commit, if a Resource was created as 'Bar[instance]',
it would fail an attemt to fetch the resource type from its
environment. The environment would not be set and thus fallback
to whatever the :current_environment referred to. This made
the test spec/integration/parser/ruby_manifest_spec.rb fail.

Here, the environment is passed from the catalog to the Resource
initialize methdo in the attributes hash and properly assigned
before used.

Details

Provenance
Thomas Hallgren <thomas@tada.se>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU8096dcb7c72b: (PUP-3897) Add acceptance: ensure new environment picked up by agent
Branches
Unknown
Tags
Unknown

Event Timeline

Thomas Hallgren <thomas@tada.se> committed rPU50d131be7396: (PUP-3934) Propagate environment to Resource initializer (authored by Thomas Hallgren <thomas@tada.se>).Jan 31 2015, 7:49 PM