summaryrefslogtreecommitdiff
path: root/ironic_python_agent/cmd
diff options
context:
space:
mode:
authorJay Faulkner <jay@jvf.cc>2015-02-27 14:25:13 -0600
committerJay Faulkner <jay@jvf.cc>2015-02-27 14:25:13 -0600
commitff5b0643d2e94f3a9cee4f0c644c0e86e5843d14 (patch)
treede0d68c2b49a6aa302a8162c6bed9488b332b4f1 /ironic_python_agent/cmd
parentd3aa7c93aa166142a544303bcbe36767bd5689fa (diff)
downloadironic-python-agent-ff5b0643d2e94f3a9cee4f0c644c0e86e5843d14.tar.gz
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
Diffstat (limited to 'ironic_python_agent/cmd')
-rw-r--r--ironic_python_agent/cmd/agent.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ironic_python_agent/cmd/agent.py b/ironic_python_agent/cmd/agent.py
index 020504c5..77c3b4b1 100644
--- a/ironic_python_agent/cmd/agent.py
+++ b/ironic_python_agent/cmd/agent.py
@@ -197,7 +197,7 @@ cli_opts = [
help='The amount of seconds to wait for LLDP packets.'),
cfg.BoolOpt('standalone',
- default=False,
+ default=APARAMS.get('ipa-standalone', False),
help='Note: for debugging only. Start the Agent but suppress '
'any calls to Ironic API.'),
]