Skip to content

Commit

Permalink
Fix Content Type
Browse files Browse the repository at this point in the history
  • Loading branch information
LKaemmerling committed Jan 29, 2018
1 parent a524f0f commit 617f545
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Models/Servers/Servers.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,19 +74,19 @@ public function get(int $serverId): Server
public function create(
string $name,
ServerType $serverType,
Datacenter $datacenter,
Location $location,
Image $image,
Location $location = null,
Datacenter $datacenter = null,
$ssh_keys = [],
$startAfterCreate = true,
$user_data = '',
$ssh_keys = []
$user_data = ''
): Server {
$response = $this->httpClient->post('servers', [
'json' => [
'name' => $name,
'server_type' => $serverType->id,
'datacenter' => $datacenter->id,
'location' => $location->id,
'datacenter' => $datacenter->id ?: null,
'location' => $location->id ?: null,
'image' => $image->id,
'start_after_create' => $startAfterCreate,
'user_data' => $user_data,
Expand Down

0 comments on commit 617f545

Please sign in to comment.