summaryrefslogtreecommitdiff
path: root/lib/chef/resource/python.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/resource/python.rb')
-rw-r--r--lib/chef/resource/python.rb7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/chef/resource/python.rb b/lib/chef/resource/python.rb
index 8c9e74217a..0f6b6795bd 100644
--- a/lib/chef/resource/python.rb
+++ b/lib/chef/resource/python.rb
@@ -25,11 +25,8 @@ class Chef
# their nature) not idempotent, as they are typically unique to the environment in which they are run. Use not_if and
# only_if to guard this resource for idempotence.
class Python < Chef::Resource::Script
- def initialize(name, run_context = nil)
- super
- @interpreter = "python"
- end
-
+ resource_name :python
+ property :interpreter, default: "python"
end
end
end