diff options
| author | Nick Lewis <nick@puppetlabs.com> | 2010-06-18 14:19:38 -0700 |
|---|---|---|
| committer | test branch <puppet-dev@googlegroups.com> | 2010-02-17 06:50:53 -0800 |
| commit | 8b127b185171c516b0d3ab526e0f7606063582bb (patch) | |
| tree | 872ed4dc9c4dbd41e25495c2d870e7baa47379f6 /test/ral | |
| parent | be7112aff784cec1490af9d809c4950b940287cb (diff) | |
| download | puppet-8b127b185171c516b0d3ab526e0f7606063582bb.tar.gz puppet-8b127b185171c516b0d3ab526e0f7606063582bb.tar.xz puppet-8b127b185171c516b0d3ab526e0f7606063582bb.zip | |
[#3388] Setting host_aliases from [] to [] no longer results in any changes
The message was "host_aliases changed from 'absent' to ''". When reading from
the hosts file, a host without aliases was considered to have "absent"
host_aliases. The host_aliases list is now considered to be present but empty
if it is absent.
Diffstat (limited to 'test/ral')
| -rwxr-xr-x | test/ral/providers/host/parsed.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ral/providers/host/parsed.rb b/test/ral/providers/host/parsed.rb index ce70f5c9f..839761286 100755 --- a/test/ral/providers/host/parsed.rb +++ b/test/ral/providers/host/parsed.rb @@ -106,7 +106,7 @@ class TestParsedHostProvider < Test::Unit::TestCase {:record_type => :parsed, :name => "myhost", :ip => "192.168.43.56", :host_aliases => %w{another host}}, {:record_type => :blank, :line => " "}, {:record_type => :comment, :line => "# another comment"}, - {:record_type => :parsed, :name => "anotherhost", :ip => "192.168.43.57"} + {:record_type => :parsed, :name => "anotherhost", :ip => "192.168.43.57", :host_aliases => []} ], instances) newtext = nil |
