Skip to content

Commit

Permalink
Update VestaAPI.php
Browse files Browse the repository at this point in the history
  • Loading branch information
DiegoKarabin authored Aug 10, 2018
1 parent fa249cc commit 5fdd444
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Services/VestaAPI.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public function server($server = '')
if (empty($server)) {
throw new \Exception('Server is not specified');
}

$allServers = config('vesta.servers');

if (!isset($allServers[$server])) {
Expand All @@ -56,7 +57,7 @@ public function server($server = '')
}

$this->host = (string) $allServers[$server]['host'];
$this->username = (string) $allServers[$server]['admin_user'];
$this->userName = (string) $allServers[$server]['admin_user'];
$this->key = (string) $allServers[$server]['admin_password'];

return $this;
Expand Down

0 comments on commit 5fdd444

Please sign in to comment.