Skip to content

Fix issue with retrieving FloatingIP - #195

Merged
haphan merged 2 commits into
php-opencloud:masterfrom
Jahsis:floating_ip
Jan 23, 2018
Merged

Fix issue with retrieving FloatingIP#195
haphan merged 2 commits into
php-opencloud:masterfrom
Jahsis:floating_ip

Conversation

@Jahsis

@JahsisJahsis commented Jan 22, 2018

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
ContributorAuthor

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
Copy Markdown
Collaborator

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

@Jahsis

Copy link
Copy Markdown
ContributorAuthor

@haphan please, check my changes.

@haphan
haphan merged commit 2f97f45 into php-opencloud:masterJan 23, 2018
@Jahsis
Jahsis deleted the floating_ip branch January 23, 2018 14:14
Sign up for freeto 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

@Jahsis@haphan