From 016723ddfc379df8ce19a7fbc41e4d7fedb3fe93 Mon Sep 17 00:00:00 2001 From: Jan Waldecker Date: Mon, 25 Dec 2017 01:08:52 +0100 Subject: [PATCH] + added individual commands for pxe installations --- composer.json | 2 +- src/PxeInstallationHandler.php | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 0de75ad..5c47eb2 100644 --- a/composer.json +++ b/composer.json @@ -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" diff --git a/src/PxeInstallationHandler.php b/src/PxeInstallationHandler.php index 48726af..a9262c5 100644 --- a/src/PxeInstallationHandler.php +++ b/src/PxeInstallationHandler.php @@ -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, @@ -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 ]); }