Skip to content

Conversation

@Jahsis
Copy link
Contributor

@Jahsis Jahsis commented Jan 22, 2018

Fix issue with retrieving FloatingIP data. Previously retrieved only object without populated data.

public function retrieve()
{
$this->executeWithState($this->api->getFloatingIp());
$response = $this->execute($this->api->getFloatingIp(),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this equivalent to the following?

$response =  $this->executeWithState($this->api->getFloatingIp());

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like your suggestion is much more cleaner, I will do changes.

@haphan
Copy link
Collaborator

haphan commented Jan 23, 2018

Good catch @Jahsis.
Please check my comment and let me know if its ok.

@Jahsis
Copy link
Contributor Author

Jahsis commented Jan 23, 2018

@haphan please, check my changes.

@haphan haphan merged commit 2f97f45 into php-opencloud:master Jan 23, 2018
@Jahsis Jahsis deleted the floating_ip branch January 23, 2018 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants