update change port
This commit is contained in:
@@ -11,9 +11,9 @@ use Illuminate\View\Component;
|
||||
class OsServerVersion extends Component
|
||||
{
|
||||
public function __construct(
|
||||
public $model = null,
|
||||
public vCenter $vCenter,
|
||||
public vCenterRepositoryInterface $vCenterRepository
|
||||
public vCenterRepositoryInterface $vCenterRepository,
|
||||
public $model = null
|
||||
) {
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@ class OsServerVersion extends Component
|
||||
|
||||
protected function fetchVersions()
|
||||
{
|
||||
$vCenter = optional($this->model?->osGroup?->host?->datacenter?->vCenter);
|
||||
$vCenter = $this->model?->osGroup?->host?->datacenter?->vCenter;
|
||||
|
||||
if (!$vCenter || !$vCenter->host) {
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user