Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

use use_inline_resources only if defined, as use_inline_resources is …

…not available on all Chef versions
  • Loading branch information...
commit 5bb8c3f6a17e4c898283a9050530cf574e876bbe 1 parent 6626294
@kher kher authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 providers/extension.rb
View
4 providers/extension.rb
@@ -2,7 +2,7 @@
require 'chef/mixin/language'
include Chef::Mixin::ShellOut
-use_inline_resources
+use_inline_resources if defined?(use_inline_resources)
action :enable do
p=shell_out("#{node[:zendserver][:zsmanage]} extension-on -e #{@new_resource.name} -N #{node[:zendserver][:apikeyname]} -K #{node[:zendserver][:apikeysecret]}")
@@ -20,4 +20,4 @@
if p.stdout.split("\n")[1] =~ /\.?You should restart php after this action/i
new_resource.updated_by_last_action(true)
end
-end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.