From 901f96866fd7f6f569d3c0bb9b06594d93a759a9 Mon Sep 17 00:00:00 2001 From: "Andrei V. Ostapenko" Date: Thu, 19 Jan 2017 21:06:43 +0200 Subject: [PATCH] Rename kernel parameters expected by callback Change-Id: I1e754de2aec89e6d6140792565791c1b523ec344 --- bareon/cmd/ironic_callback.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bareon/cmd/ironic_callback.py b/bareon/cmd/ironic_callback.py index a9a97c9..068b07b 100755 --- a/bareon/cmd/ironic_callback.py +++ b/bareon/cmd/ironic_callback.py @@ -32,7 +32,7 @@ def main(): There are three mandatory parameters in kernel command line. Ironic prepares these two: - 'api-url' - URL of Ironic API service, + 'ironic_api_url' - URL of Ironic API service, 'deployment_id' - UUID of the node in Ironic. Passed from PXE boot loader: 'BOOTIF' - MAC address of the boot interface, @@ -42,11 +42,11 @@ def main(): BOOTIF=01-88-99-aa-bb-cc-dd """ kernel_params = utils.parse_kernel_cmdline() - api_url = kernel_params.get('api-url') + api_url = kernel_params.get('ironic_api_url') deployment_id = kernel_params.get('deployment_id') if api_url is None or deployment_id is None: - _process_error('Mandatory parameter ("api-url" or "deployment_id") is ' - 'missing.') + _process_error('Mandatory parameter ("ironic_api_url" or ' + '"deployment_id") is missing.') bootif = kernel_params.get('BOOTIF') if bootif is None: