summaryrefslogtreecommitdiffstats
path: root/spec/unit/util/autoload.rb
diff options
context:
space:
mode:
authorJesse Wolfe <jes5199@gmail.com>2009-11-19 01:18:53 -0800
committerJames Turnbull <james@lovedthanlost.net>2009-11-21 13:38:22 +1100
commit9cfe390515b464acae8268c2688543a9d816734c (patch)
tree654e81703be5009f77d698b9faa49e68cce2a35c /spec/unit/util/autoload.rb
parent53b3b86681e3c56f8455e5d8458b4ea900a50406 (diff)
downloadpuppet-9cfe390515b464acae8268c2688543a9d816734c.tar.gz
puppet-9cfe390515b464acae8268c2688543a9d816734c.tar.xz
puppet-9cfe390515b464acae8268c2688543a9d816734c.zip
Fixing 2812 authorized_keys without comments fail
This is technically a duplicate of #1531, I think this change prevents the problem that appears in #2812, without touching the underlying issues of #1531. ssh_authorized_key was failing on keys in ~/.ssh/authorized_keys that lack a comment field - it would generate a Ssh_authorized_key resource with the name set to nil, which raises "ArgumentError: Field 'name' is required." Fixed by setting such keys' name fields to an empty string. This prevents the error from being raised and the authorized_keys files round-trip successfully. Signed-off-by: Jesse Wolfe <jes5199@gmail.com>
Diffstat (limited to 'spec/unit/util/autoload.rb')
0 files changed, 0 insertions, 0 deletions