diff options
author | John McCrae <john.mccrae@progress.com> | 2021-09-24 16:19:05 -0700 |
---|---|---|
committer | John McCrae <john.mccrae@progress.com> | 2021-09-24 16:19:05 -0700 |
commit | d250ad33c08f0685a9d5c04bd9fde95cd12496cf (patch) | |
tree | 5214ce0169791387161de8eb3c75d465a697dacd | |
parent | 3410e1451b0859c8f13424e4a484e8bbf37647d0 (diff) | |
download | chef-d250ad33c08f0685a9d5c04bd9fde95cd12496cf.tar.gz |
Updated the package source resource to accept credentials and updated the code to be more readable
Signed-off-by: John McCrae <john.mccrae@progress.com>
-rw-r--r-- | lib/chef/resource/powershell_package_source.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/chef/resource/powershell_package_source.rb b/lib/chef/resource/powershell_package_source.rb index 2636b4b738..6a91b8d0b8 100644 --- a/lib/chef/resource/powershell_package_source.rb +++ b/lib/chef/resource/powershell_package_source.rb @@ -226,7 +226,9 @@ class Chef raise "Failed to unregister #{new_resource.source_name}: #{res.errors}" if res.error? end else - raise "Failed to unregister #{new_resource.source_name}: Package Source does not exist" + logger.warn("*****************************************") + logger.warn("Failed to unregister #{new_resource.source_name}: Package Source does not exist") + logger.warn("*****************************************") end end |