Skip to content

Commit 38325c0

Browse files
authored
Fix nework port retrieve and update
Issue #109
2 parents a2f6e87 + b1cbdcb commit 38325c0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Networking/v2/Models/Port.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,12 +148,14 @@ public function bulkCreate(array $userOptions): array
148148

149149
public function retrieve()
150150
{
151-
$this->executeWithState($this->api->getPort());
151+
$response = $this->execute($this->api->getPort(), ['id' => (string)$this->id]);
152+
$this->populateFromResponse($response);
152153
}
153154

154155
public function update()
155156
{
156-
$this->executeWithState($this->api->putPort());
157+
$response = $this->executeWithState($this->api->putPort());
158+
$this->populateFromResponse($response);
157159
}
158160

159161
public function delete()

0 commit comments

Comments
 (0)