Displaying 1 result from an estimated 1 matches for "warnonc".
Did you mean:
warnonce
2007 Jul 27
3
Small patch to take care of missing yum server problem.
...available,
@resource[:name]
+ begin
+ output = yum "-d", "0", "-e", "0", :list, :available,
@resource[:name]
+ rescue
+ output = "Notice:Yum server could not be reached."
+ Puppet::Util::Warnings.warnonce $output
+ end
if output =~ /^#{Regexp.escape(@resource[:name])}\S+\s+(\S+)\s/
return $1
- -----END PATCH-----
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
iD8DBQFGqWRhmiOKeJOeocsRCsOqAKCsWOrHM8UrgCwfcb2DjRGFR6WaCQCdFH0B
NadAtAbCco7zQuu4pN2Wekk=
=HEh...