tests pass!
This commit is contained in:
@@ -105,12 +105,14 @@ class ServerController extends Controller
|
||||
'external_id' => $createdServer->id,
|
||||
'ipv4' => $createdServer->ipv4,
|
||||
'ipv6' => $createdServer->ipv6,
|
||||
'private_ip' => $createdServer->privateIp,
|
||||
'provider_status' => $createdServer->status,
|
||||
'status' => ServerStatus::WAITING_FOR_PROVIDER,
|
||||
'region' => $request->location,
|
||||
'os' => $request->image,
|
||||
'plan' => $request->server_type,
|
||||
'user' => 'keystone',
|
||||
'external_network_id' => $network->id,
|
||||
]);
|
||||
|
||||
dispatch(new WaitForServerToConnect(
|
||||
|
||||
@@ -7,11 +7,6 @@ use Saloon\Http\Connector;
|
||||
|
||||
class HetznerConnector extends Connector
|
||||
{
|
||||
public function __construct(protected readonly Provider $provider)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
public function resolveBaseUrl(): string
|
||||
{
|
||||
return 'https://api.hetzner.cloud/v1';
|
||||
@@ -22,7 +17,6 @@ class HetznerConnector extends Connector
|
||||
return [
|
||||
'Content-Type' => 'application/json',
|
||||
'Accept' => 'application/json',
|
||||
'Authorization' => 'Bearer '.$this->provider->token,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user