Skip to content

Commit

Permalink
Merge pull request #8 from DiegoKarabin/patch-5
Browse files Browse the repository at this point in the history
Update VestaAPI.php
  • Loading branch information
AlexR1712 authored Aug 10, 2018
2 parents fa249cc + 5fdd444 commit 3775ef3
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 3775ef3

Please sign in to comment.