Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
slapos.core
Commits
46e6b43e
Commit
46e6b43e
authored
Mar 20, 2023
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cli: expose --only-cp in slapos node promise
The logic was here, but the argument was not registered
parent
c5a95c3b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
4 deletions
+16
-4
CHANGES.rst
CHANGES.rst
+4
-0
slapos/cli/slapgrid.py
slapos/cli/slapgrid.py
+12
-4
No files found.
CHANGES.rst
View file @
46e6b43e
Changes
Changes
=======
=======
1.9.1 (unreleased)
------------------
* node promise: support --only-cp argument
1.9.0 (2023-03-09)
1.9.0 (2023-03-09)
------------------
------------------
* format: add IPv6 range for partitions and tun
* format: add IPv6 range for partitions and tun
...
...
slapos/cli/slapgrid.py
View file @
46e6b43e
...
@@ -181,9 +181,17 @@ class ReportCommand(SlapgridCommand):
...
@@ -181,9 +181,17 @@ class ReportCommand(SlapgridCommand):
pidfile_option_name
=
'pidfile_report'
pidfile_option_name
=
'pidfile_report'
class
PromiseCommand
(
SlapgridCommand
):
class
PromiseCommand
(
SlapgridCommand
):
"""run only promises to test the par
ition state"""
"""run only promises to test the part
ition state"""
method_name
=
'processPromiseList'
method_name
=
'processPromiseList'
default_pidfile
=
'/opt/slapos/slapgrid-cp.pid'
default_pidfile
=
'/opt/slapos/slapgrid-cp.pid'
pidfile_option_name
=
'pidfile_instance'
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment