Exploriment / hcloud-php

PHP library for the Hetzner Cloud API by Exploriment
MIT License
28 stars 8 forks source link

Servers::rebuild not returning new password #5

Closed Vladdy88 closed 6 years ago

Vladdy88 commented 6 years ago

I have tested the Servers::rebuild method and the response of it is an Action object that has no root password and don't allow getRootPassword() method.

The public static function rebuild($id, $image) method from the final class Servers uses the trait Actionable action() method that returns only new Action($response->action), but the new root password is in $response->root_password.

Thank you!

dyhli commented 6 years ago

Fixed in version 1.1.2. Thank you.