Commit 46e6b43e authored by Jérome Perrin's avatar Jérome Perrin

cli: expose --only-cp in slapos node promise

The logic was here, but the argument was not registered
parent c5a95c3b
Changes
=======
1.9.1 (unreleased)
------------------
* node promise: support --only-cp argument
1.9.0 (2023-03-09)
------------------
* format: add IPv6 range for partitions and tun
......
......@@ -181,9 +181,17 @@ class ReportCommand(SlapgridCommand):
pidfile_option_name = 'pidfile_report'
class PromiseCommand(SlapgridCommand):
"""run only promises to test the parition state"""
"""run only promises to test the partition state"""
method_name = 'processPromiseList'
default_pidfile = '/opt/slapos/slapgrid-cp.pid'
pidfile_option_name = 'pidfile_instance'
def get_parser(self, prog_name):
ap = super(PromiseCommand, self).get_parser(prog_name)
ap.add_argument('--only-cp', '--only',
help='Run promise for a single or a list of computer partitions '
'(ie.:slappartX, slappartY), '
'this option will make all other computer partitions be ignored.')
return ap
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment