HewlettPackard / oneview-puppet

This project is no longer being developed and has limited support. In the near future this repository will be fully deprecated. Please consider using other OneView projects, such as Terraform and Ansible Collection
https://forge.puppet.com/hewlettpackard/oneview
Apache License 2.0
8 stars 17 forks source link

Add rescue to requirement of 'oneview-sdk' to avoid catalog issues #161

Closed fgbulsoni closed 7 years ago

fgbulsoni commented 7 years ago

Scenario/Intent

Running Puppet on an agent might fail during catalog compilation if no 'oneview-sdk' gem is available on the agent node and prevent further execution of code. This exception should be caught and returned as a warning.

Environment Details

Steps to Reproduce

Run on a server/agent configuration where the oneview-sdk gem is not available for the node which is trying to execute the module commands.

Expected Result

Should fail gracefully.

Actual Result

Fails hard and stops execution.