Skip to content

Commit ff5b064

Browse files
committed
Enable setting standalone mode via APARAMS
All other IPA options are settable via APARAMS (kernel command line or the kernel commandline-like interface provided by virtualmedia). Being able to set this at PXE time allows for operators to boot and functionally test new agent images without having to recompile post testing (to change standalone setting). Change-Id: Ie796a98c995704db09945b6f890e9bf4d07eaa1a Closes-bug: 1426546
1 parent d3aa7c9 commit ff5b064

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ironic_python_agent/cmd/agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ def _get_vmedia_params():
197197
help='The amount of seconds to wait for LLDP packets.'),
198198

199199
cfg.BoolOpt('standalone',
200-
default=False,
200+
default=APARAMS.get('ipa-standalone', False),
201201
help='Note: for debugging only. Start the Agent but suppress '
202202
'any calls to Ironic API.'),
203203
]

0 commit comments

Comments
 (0)