Open scop opened 1 week ago
Change the line number #65 value from
$Hostname = $this->params['domain'] ?? 'client' . $this->params['serviceid'] . '.' . $_SERVER['SERVER_NAME'];
to
$Hostname = !empty($this->params['domain']) ? $this->params['domain'] : 'client' . $this->params['serviceid'] . '.' . $_SERVER['SERVER_NAME'];
When a server (vm) create is attempted using the UpCloud API, the title and hostname are sent over as empty, causing the creation to fail.
Module logs shows request payload starting with
Both title and hostname must be populated.
This quick hack works around the issue, but I'm not sure if it's the appropriate fix.
I.e.
$this->params['domain'] ??
was removed.