summaryrefslogtreecommitdiff
path: root/lib/chef/resource
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/resource')
-rw-r--r--lib/chef/resource/apt_repository.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource/apt_repository.rb b/lib/chef/resource/apt_repository.rb
index e1ea665858..bba753638c 100644
--- a/lib/chef/resource/apt_repository.rb
+++ b/lib/chef/resource/apt_repository.rb
@@ -26,7 +26,7 @@ class Chef
property :repo_name, String, name_property: true
property :uri, String
- property :distribution, String, default: lazy { node["lsb"]["codename"] }
+ property :distribution, [ String, nil ], default: lazy { node["lsb"]["codename"] }, nillable: true
property :components, Array, default: []
property :arch, [String, nil], default: nil
property :trusted, [TrueClass, FalseClass], default: false