From 2df170ba05b76f4957b7c46436168806f455e8f3 Mon Sep 17 00:00:00 2001 From: jamescott Date: Tue, 9 Dec 2014 09:57:54 -0800 Subject: [PATCH] https://github.com/opscode/chef/issues/2545 --- .../includes_resource_execute_attributes.rst | 8 ++------ ...s_resources_common_resource_execute_attribute_path.rst | 2 +- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/includes_resources/includes_resource_execute_attributes.rst b/includes_resources/includes_resource_execute_attributes.rst index 43b852882d..9b7ebdf451 100644 --- a/includes_resources/includes_resource_execute_attributes.rst +++ b/includes_resources/includes_resource_execute_attributes.rst @@ -20,13 +20,9 @@ * - ``group`` - |group command| * - ``path`` - - .. warning:: This attribute is deprecated starting in |chef client| 12.0. Use the ``environment`` attribute instead. For example: + - |path resource execute| The default value uses the system path. - .. code-block:: ruby - - execute "mycommand" do - environment "PATH" => "/my/path/to/bin:#{ENV["PATH"]}" - end + .. warning:: .. include:: ../../includes_resources_common/includes_resources_common_resource_execute_attribute_path.rst * - ``provider`` - Optional. |provider resource_parameter| |see providers| * - ``returns`` diff --git a/includes_resources_common/includes_resources_common_resource_execute_attribute_path.rst b/includes_resources_common/includes_resources_common_resource_execute_attribute_path.rst index 027858eaba..b367acedf5 100644 --- a/includes_resources_common/includes_resources_common_resource_execute_attribute_path.rst +++ b/includes_resources_common/includes_resources_common_resource_execute_attribute_path.rst @@ -1,7 +1,7 @@ .. The contents of this file are included in multiple topics. .. This file should not be changed in a way that hinders its ability to appear in multiple documentation sets. -Starting with |chef client| 12, using the ``path`` attribute will return a ``NoMethodError`` exception. This is because the ``path`` attribute is not implemented by any provider in any of the previous versions of the |chef client|. Therefore, starting with |chef client| 12, the ``path`` attribute is removed entirely. Cookbooks that use the ``path`` attribute prior to |chef client| 12 should be updated to use the ``environment`` attribute before upgrading to |chef client| 12. For example: +The ``path`` attribute is not implemented by any provider in any version of the |chef client|. Starting with |chef client| 12, using the ``path`` attribute will return a warning. Starting with |chef client| 13, ``path`` is deprecated and using it will return an exception. Cookbooks that currently use the ``path`` attribute should be updated to use the ``environment`` attribute instead. For example: .. code-block:: ruby