diff options
| author | Andrew Shafer <andrew@reductivelabs.com> | 2008-07-14 19:54:52 -0600 |
|---|---|---|
| committer | Andrew Shafer <andrew@reductivelabs.com> | 2008-07-14 19:54:52 -0600 |
| commit | 4ce7159baba4c637867c91519b5a3b16627dfca5 (patch) | |
| tree | 6db7b423ed490deca8858caecce3bff5d09784d7 /lib/puppet | |
| parent | 4c5293b837807f61002365114fd7004d2f74ad57 (diff) | |
| download | puppet-4ce7159baba4c637867c91519b5a3b16627dfca5.tar.gz puppet-4ce7159baba4c637867c91519b5a3b16627dfca5.tar.xz puppet-4ce7159baba4c637867c91519b5a3b16627dfca5.zip | |
Fail instead of log when rescuing remote file connections
Issue 1397
one line fix, very simple
Diffstat (limited to 'lib/puppet')
| -rwxr-xr-x | lib/puppet/type/file/source.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/puppet/type/file/source.rb b/lib/puppet/type/file/source.rb index f2704abb6..2514d3d1e 100755 --- a/lib/puppet/type/file/source.rb +++ b/lib/puppet/type/file/source.rb @@ -101,8 +101,7 @@ module Puppet begin desc = server.describe(path, @resource[:links]) rescue Puppet::Network::XMLRPCClientError => detail - self.err "Could not describe %s: %s" % [path, detail] - return nil + fail detail, "Could not describe %s: %s" % [path, detail] end return nil if desc == "" |
