chef-boneyard / delivery-sugar

DEPRECATED: Library cookbook that adds sugar to build cookbooks for Chef Delivery
Apache License 2.0
12 stars 26 forks source link

The helper method `DeliverySugar::DSL.delivery_workspace` contains a `rescue` that triggers every time in Deploy phase of `delivery-truck` #25

Closed jerryaldrichiii closed 7 years ago

jerryaldrichiii commented 7 years ago

There is a rescue here that always triggers in the Deploy phase. This causes errors in Deploy for instances where the default workspace path is not used (e.g Windows Build Nodes).

I believe the issue is caused by calling DeliverySugar::ChefServer.new.with_server_config from within DeliveryTruck::Helpers::Deploy without passing the node object. Which causes change to fail to initialize (and triggering the rescue)

Here is the code path that leads to the error (based on my understanding):

jerryaldrichiii commented 7 years ago

Closing issue and instead referencing in PR on delivery-truck