summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2014-11-19 18:46:18 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2014-11-19 18:46:18 -0800
commit6026fd93e59756a5020040781093fd84789dc68a (patch)
treed2ff82f400f3b937c0e5a8fe06189ed4f757880f
parent346aff0078a676d8c05319c017b891184426d004 (diff)
downloadchef-lcg/empty-string-suggestion.tar.gz
validate version is not empty string or whitespacelcg/empty-string-suggestion
-rw-r--r--lib/chef/resource/package.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource/package.rb b/lib/chef/resource/package.rb
index 772439b06c..32d5c6f4d8 100644
--- a/lib/chef/resource/package.rb
+++ b/lib/chef/resource/package.rb
@@ -54,7 +54,7 @@ class Chef
set_or_return(
:version,
arg,
- :kind_of => [ String ]
+ :regex => /\S/
)
end