Skip to content

Commit 6c8f42e

Browse files
authored
Update vmManager.php
Server title and hostname empty on create #46
1 parent e3ffc77 commit 6c8f42e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

modules/servers/upCloudVps/lib/vmManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function create(){
6262
$OsUUID = $this->params['configoptions']['template'] ?? $this->params['configoption3'];
6363
$sshkey = $this->params['customfields']['ssh_key'];
6464
$user_data = $this->params['customfields']['userData'];
65-
$Hostname = $this->params['domain'] ?? 'client' . $this->params['serviceid'] . '.' . $_SERVER['SERVER_NAME'];
65+
$Hostname = !empty($this->params['domain']) ? $this->params['domain'] : 'client' . $this->params['serviceid'] . '.' . $_SERVER['SERVER_NAME'];
6666
$sshkey = empty($sshkey) ? "na" : $sshkey;
6767
$user_data = empty($user_data) ? "na" : $user_data;
6868
$backup = $this->params['configoptions']['backup'];

0 commit comments

Comments
 (0)