diff options
author | Adam Edwards <adamed@opscode.com> | 2014-08-30 22:54:59 -0700 |
---|---|---|
committer | Jay Mundrawala <jdmundrawala@gmail.com> | 2014-09-19 12:48:01 -0700 |
commit | b89d0bc184fed51236782d8ae001e36389713f73 (patch) | |
tree | 214cb3bae15e62f5187c50d8c65163ecfa70e8c8 /lib/chef/util/dsc | |
parent | c0e7ce17814fd2583ea5e46e5adcbae5214115bc (diff) | |
download | chef-b89d0bc184fed51236782d8ae001e36389713f73.tar.gz |
Expose exit_code for cmdlet_result and use to detect DSC resource installation problems
Diffstat (limited to 'lib/chef/util/dsc')
-rw-r--r-- | lib/chef/util/dsc/local_configuration_manager.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/util/dsc/local_configuration_manager.rb b/lib/chef/util/dsc/local_configuration_manager.rb index b1b0752be1..d25f144095 100644 --- a/lib/chef/util/dsc/local_configuration_manager.rb +++ b/lib/chef/util/dsc/local_configuration_manager.rb @@ -33,7 +33,7 @@ class Chef::Util::DSC status = run_configuration_cmdlet(configuration_document) command_output = status.return_value unless status.succeeded? - if status.status.exitstatus == LCM_MODULE_NOT_INSTALLED_ERROR_CODE + if status.exit_code == LCM_MODULE_NOT_INSTALLED_ERROR_CODE Chef::Log::warn('Unable to test configuration because a required DSC PowerShell module may not be installed.') command_output = '' end |