Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
caucase
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
caucase
Commits
1997adb2
Commit
1997adb2
authored
Jan 05, 2019
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
http: Improve coding style a bit.
parent
8283ffeb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
caucase/http.py
caucase/http.py
+5
-4
No files found.
caucase/http.py
View file @
1997adb2
...
@@ -445,7 +445,7 @@ def main(
...
@@ -445,7 +445,7 @@ def main(
default
=
[],
default
=
[],
nargs
=
'+'
,
nargs
=
'+'
,
metavar
=
'URL'
,
metavar
=
'URL'
,
help
=
'Origin values to always trust. default: none'
help
=
'Origin values to always trust. default: none'
,
)
)
parser
.
add_argument
(
parser
.
add_argument
(
'--netloc'
,
'--netloc'
,
...
@@ -538,7 +538,7 @@ def main(
...
@@ -538,7 +538,7 @@ def main(
metavar
=
'COUNT'
,
metavar
=
'COUNT'
,
help
=
'Number service certificates which should be automatically signed on '
help
=
'Number service certificates which should be automatically signed on '
'submission, excluding the one needed to serve caucase. '
'submission, excluding the one needed to serve caucase. '
'default: %(default)s'
'default: %(default)s'
,
)
)
user_group
.
add_argument
(
user_group
.
add_argument
(
'--user-auto-approve-count'
,
'--user-auto-approve-count'
,
...
@@ -548,6 +548,7 @@ def main(
...
@@ -548,6 +548,7 @@ def main(
help
=
'Number of user certificates which should be automatically signed on '
help
=
'Number of user certificates which should be automatically signed on '
'submission. default: %(default)s'
,
'submission. default: %(default)s'
,
)
)
parser
.
add_argument
(
parser
.
add_argument
(
'--lock-auto-approve-count'
,
'--lock-auto-approve-count'
,
action
=
'store_true'
,
action
=
'store_true'
,
...
@@ -555,7 +556,7 @@ def main(
...
@@ -555,7 +556,7 @@ def main(
'and --user-auto-approve-count values are stored inside caucase database '
'and --user-auto-approve-count values are stored inside caucase database '
'and will not be altered by further invocations. Once the respective '
'and will not be altered by further invocations. Once the respective '
'certificate issuance counters reach these values, no further '
'certificate issuance counters reach these values, no further '
'certificates will be ever automatically signed.'
'certificates will be ever automatically signed.'
,
)
)
backup_group
=
parser
.
add_argument_group
(
backup_group
=
parser
.
add_argument_group
(
...
@@ -573,7 +574,7 @@ def main(
...
@@ -573,7 +574,7 @@ def main(
'--backup-period'
,
'--backup-period'
,
default
=
1
,
default
=
1
,
type
=
float
,
type
=
float
,
help
=
'Number of days between backups. default: %(default)s'
help
=
'Number of days between backups. default: %(default)s'
,
)
)
args
=
parser
.
parse_args
(
argv
)
args
=
parser
.
parse_args
(
argv
)
...
...
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