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

Skip to content

Commit 0f4031c

Browse files
author
Andrew Crump
committed
FC016: LWRP does not declare a default action.
1 parent a5cce1a commit 0f4031c

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

resources/pip.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,8 @@
2525
attribute :timeout, :default => nil
2626
attribute :virtualenv, :kind_of => String
2727
attribute :options, :kind_of => String
28+
29+
def initialize(*args)
30+
super
31+
@action = :install
32+
end

resources/virtualenv.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,8 @@
2424
attribute :interpreter, :default => 'python2.6'
2525
attribute :owner, :regex => Chef::Config[:user_valid_regex]
2626
attribute :group, :regex => Chef::Config[:group_valid_regex]
27+
28+
def initialize(*args)
29+
super
30+
@action = :create
31+
end

0 commit comments

Comments
 (0)