diff options
author | Daniel Pittman <daniel@puppetlabs.com> | 2012-07-15 13:48:39 -0700 |
---|---|---|
committer | Daniel Pittman <daniel@puppetlabs.com> | 2012-07-15 13:48:39 -0700 |
commit | bea5c78e1a7d9797e1da42a65f1a971378fefa91 (patch) | |
tree | 99bd0274d9992f86e4f122dd921b5a1e8960697d /spec/unit/parser/functions/generate_spec.rb | |
parent | 9b01091bf7657e499f3319c8e7d4258a44a831cc (diff) | |
download | puppet-bea5c78e1a7d9797e1da42a65f1a971378fefa91.tar.gz |
A node always has an environment.
Puppet node objects, now, always have environments, and they are the genuine
Ruby object representing an environment, never just the name.
In consequence of this, the code in the compiler to handle two conditions - no
environment, or an empty string as environment - that presumably could have
been true at some time in the past ... no longer makes sense.
Instead, replace it with a clear and direct failure in the event we don't get
the object we expect, and carry on.
Signed-off-by: Daniel Pittman <daniel@puppetlabs.com>
Diffstat (limited to 'spec/unit/parser/functions/generate_spec.rb')
0 files changed, 0 insertions, 0 deletions