Skip to content

Commit

Permalink
+ added individual commands for pxe installations
Browse files Browse the repository at this point in the history
  • Loading branch information
JWaldecker committed Dec 25, 2017
1 parent abc3c97 commit 016723d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "lumaserv/lumaserv-php-client",
"description": "A full-featured implementation of the LumaservSystem-JSON-API",
"type": "library",
"version": "1.7.3",
"version": "1.7.4",
"require": {
"php": ">=5.5",
"guzzlehttp/guzzle": ">=6.0"
Expand Down
5 changes: 3 additions & 2 deletions src/PxeInstallationHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function getAll($addresses = [], $username = null)
* @internal param null $end
* @internal param null $interval
*/
public function create($address, $mac_address, $hostname, $template, $password, $support_ssh_key = false, $raid_level = null, $raid_disk_count = null, $network_name = null)
public function create($address, $mac_address, $hostname, $template, $password, $support_ssh_key = false, $raid_level = null, $raid_disk_count = null, $network_name = null, $commands = [])
{
return $this->lumaserv->post('datacenter/pxe_installations/create', [
'address' => $address,
Expand All @@ -54,7 +54,8 @@ public function create($address, $mac_address, $hostname, $template, $password,
'support_ssh_key' => $support_ssh_key,
'raid_level' => $raid_level,
'raid_disk_count' => $raid_disk_count,
'network_name' => $network_name
'network_name' => $network_name,
'commands' => $commands
]);
}

Expand Down

0 comments on commit 016723d

Please sign in to comment.