summaryrefslogtreecommitdiffstats
path: root/lib/puppet/provider/ssh_authorized_key/parsed.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/puppet/provider/ssh_authorized_key/parsed.rb')
-rw-r--r--lib/puppet/provider/ssh_authorized_key/parsed.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/puppet/provider/ssh_authorized_key/parsed.rb b/lib/puppet/provider/ssh_authorized_key/parsed.rb
index a39f59c54..a9738e761 100644
--- a/lib/puppet/provider/ssh_authorized_key/parsed.rb
+++ b/lib/puppet/provider/ssh_authorized_key/parsed.rb
@@ -43,11 +43,9 @@ require 'puppet/provider/parsedfile'
end
def target
- begin
@resource.should(:target) || File.expand_path("~#{@resource.should(:user)}/.ssh/authorized_keys")
- rescue
+ rescue
raise Puppet::Error, "Target not defined and/or specified user does not exist yet"
- end
end
def user