Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9f11ea6

Browse files
committed
Truly support backwards compatability
1 parent 6acad21 commit 9f11ea6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

resources/pip.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
#
2020

2121
actions :install, :upgrade, :remove, :purge
22-
default_action :install
22+
default_action :install if defined?(default_action) # Chef > 10.8
2323

24-
# Covers 0.10.8 and earlier :default_action
24+
# Default action for Chef <= 10.8
2525
def initialize(*args)
2626
super
2727
@action = :install

0 commit comments

Comments
 (0)