summaryrefslogtreecommitdiff
path: root/lib/chef/formatters/error_inspectors/resource_failure_inspector.rb
diff options
context:
space:
mode:
authorMarc Chamberland <chamberland.marc@gmail.com>2020-05-09 22:58:18 -0400
committerLance Albertson <lance@osuosl.org>2020-09-15 14:04:36 -0700
commited48186831835be81b436a160bcf190a7756d473 (patch)
treed4ae8196171c57dc2e773e610997e5894e5cf019 /lib/chef/formatters/error_inspectors/resource_failure_inspector.rb
parentf5bbe608321ce3bcfd2d4f17292cf8c1ff042893 (diff)
downloadchef-ed48186831835be81b436a160bcf190a7756d473.tar.gz
move dist implementation into chef-utils
Signed-off-by: Marc Chamberland <chamberland.marc@gmail.com> Signed-off-by: Lance Albertson <lance@osuosl.org>
Diffstat (limited to 'lib/chef/formatters/error_inspectors/resource_failure_inspector.rb')
-rw-r--r--lib/chef/formatters/error_inspectors/resource_failure_inspector.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/formatters/error_inspectors/resource_failure_inspector.rb b/lib/chef/formatters/error_inspectors/resource_failure_inspector.rb
index fa7580d2c3..04bc8ded65 100644
--- a/lib/chef/formatters/error_inspectors/resource_failure_inspector.rb
+++ b/lib/chef/formatters/error_inspectors/resource_failure_inspector.rb
@@ -16,7 +16,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
-require_relative "../../dist"
+require "chef-utils"
class Chef
module Formatters
@@ -56,7 +56,7 @@ class Chef
require_relative "../../win32/security"
unless Chef::ReservedNames::Win32::Security.has_admin_privileges?
- error_description.section("Missing Windows Admin Privileges", "#{Chef::Dist::CLIENT} doesn't have administrator privileges. This can be a possible reason for the resource failure.")
+ error_description.section("Missing Windows Admin Privileges", "#{ChefUtils::Dist::Infra::CLIENT} doesn't have administrator privileges. This can be a possible reason for the resource failure.")
end
end
end