apt: Fix all strict variable cases.
authorDaniele Sluijters <daenney@users.noreply.github.com>
Mon, 2 Mar 2015 21:40:06 +0000 (22:40 +0100)
committerDaniele Sluijters <daenney@users.noreply.github.com>
Tue, 3 Mar 2015 16:33:14 +0000 (17:33 +0100)
commitc57d2dd5ddafe26bd17727ab184b00fb8a166a2a
treebdb3242b6765933fd68090958b1c9704d7981020
parent396036892d81a10afb59a0cea287e620a60f7555
apt: Fix all strict variable cases.

A few of these fixes are absolutely horrendous but we have no choice as
we need to stay current- and future-parser compatible for now.

Once we can go Puppet 4 only we can use the `$facts` hash lookup instead
which will return undef/nil for things that aren't set instead of them
not being defined at all.
13 files changed:
manifests/params.pp
manifests/pin.pp
manifests/ppa.pp
manifests/source.pp
spec/classes/apt_spec.rb
spec/classes/apt_update_spec.rb
spec/classes/params_spec.rb
spec/defines/conf_spec.rb
spec/defines/key_spec.rb
spec/defines/pin_spec.rb
spec/defines/ppa_spec.rb
spec/defines/setting_spec.rb
templates/pin.pref.erb