tonobo / hcloud-ruby

Native ruby client for HetznerCloud
MIT License
32 stars 11 forks source link

handle action array responses for firewall actions #48

Closed ghost closed 1 year ago

ghost commented 1 year ago

Firewall action API endpoints respond with an array of actions. The current code only expects a single action and will fallback to parsing the response as an empty Firewall object. With this adjustment we also handle an array in a field actions and return an array of Action objects to the caller.

cf. API docs, I also sent some real requests and indeed firewall actions return an array of actions