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
e976cb4d
Commit
e976cb4d
authored
Jan 11, 2013
by
Cédric de Saint Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace --only_cp and --only_sr by only-cp and only-sr.
Also put comments about deprecated arguments.
parent
5338ee10
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
11 deletions
+22
-11
slapos/grid/slapgrid.py
slapos/grid/slapgrid.py
+22
-11
No files found.
slapos/grid/slapgrid.py
View file @
e976cb4d
...
...
@@ -131,26 +131,33 @@ def parseArgumentTupleAndReturnSlapgridObject(*argument_tuple):
help
=
"Periodicity at which buildout should be run in instance."
)
parser
.
add_argument
(
"--promise-timeout"
,
type
=
int
,
default
=
3
,
help
=
"Promise timeout in seconds."
)
parser
.
add_argument
(
"configuration_file"
,
nargs
=
1
,
type
=
argparse
.
FileType
(),
help
=
"SlapOS configuration file."
)
parser
.
add_argument
(
"--maximal_delay"
,
help
=
"The maximal delay value in seconds. "
\
"A negative value leads start immediately."
)
parser
.
add_argument
(
"--now"
,
action
=
"store_true"
,
default
=
False
,
help
=
"Launch slapgrid without delay."
)
parser
.
add_argument
(
"--develop"
,
action
=
"store_true"
,
default
=
False
,
help
=
"Deprecated, same as --all."
)
help
=
"Launch slapgrid without delay. Default behavior."
)
parser
.
add_argument
(
"--all"
,
action
=
"store_true"
,
default
=
False
,
help
=
"Launch slapgrid to process all Softare Releases"
"and/or Computer Partitions."
)
parser
.
add_argument
(
"--only
_
sr"
,
parser
.
add_argument
(
"--only
-
sr"
,
help
=
"Force the update of a single software release (use url hash),"
"event if is already installed. This option will make all others "
"sofware releases be ignored."
)
parser
.
add_argument
(
"--only
_
cp"
,
parser
.
add_argument
(
"--only
-
cp"
,
help
=
"Update a single or a list of computer partitions "
"(ie.:slappartX, slappartY),"
"this option will make all others computer partitions be ignored."
)
parser
.
add_argument
(
"configuration_file"
,
nargs
=
1
,
type
=
argparse
.
FileType
(),
help
=
"SlapOS configuration file."
)
# Deprecated options
parser
.
add_argument
(
"--develop"
,
action
=
"store_true"
,
default
=
False
,
help
=
"Deprecated, same as --all."
)
parser
.
add_argument
(
"--only_sr"
,
help
=
"Deprecated, same as --only-sr."
)
parser
.
add_argument
(
"--only_cp"
,
help
=
"Deprecated, same as --only-cp."
)
parser
.
add_argument
(
"--maximal_delay"
,
help
=
"Deprecated. Will only work from configuration file in the future."
)
# Parses arguments
if
argument_tuple
==
():
...
...
@@ -322,8 +329,12 @@ def parseArgumentTupleAndReturnSlapgridObject(*argument_tuple):
shadir_cert_file
=
option_dict
.
get
(
'shadir-cert-file'
,
None
),
shadir_key_file
=
option_dict
.
get
(
'shadir-key-file'
,
None
),
develop
=
option_dict
.
get
(
'develop'
,
False
),
software_release_filter_list
=
option_dict
.
get
(
'only_sr'
,
None
),
computer_partition_filter_list
=
option_dict
.
get
(
'only_cp'
,
None
),
software_release_filter_list
=
option_dict
.
get
(
'only-sr'
,
# Try to fetch from deprecated argument
option_dict
.
get
(
'only_sr'
,
None
)),
computer_partition_filter_list
=
option_dict
.
get
(
'only-cp'
,
# Try to fetch from deprecated argument
option_dict
.
get
(
'only_cp'
,
None
)),
force_periodicity
=
option_dict
.
get
(
'force_periodicity'
,
False
),
maximum_periodicity
=
option_dict
.
get
(
'maximum_periodicity'
,
86400
),
),
...
...
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