Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
Cryptocoryne
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LOFAR2.0
Cryptocoryne
Commits
d385aafb
Commit
d385aafb
authored
5 months ago
by
Hannes Feldt
Browse files
Options
Downloads
Patches
Plain Diff
improve error reporting
parent
1f230545
No related branches found
Tags
v0.0.8
Tags containing commit
1 merge request
!4
L2SS-2098: Fix various issues happening during renewal
Pipeline
#104013
passed with warnings
5 months ago
Stage: prepare
Stage: lint
Stage: test
Stage: package
Stage: images
Stage: integration
Stage: publish
Stage: deploy
Pipeline: Cryptocoryne
#104014
Changes
1
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
lofar_cryptocoryne/cli.py
+3
-3
3 additions, 3 deletions
lofar_cryptocoryne/cli.py
with
3 additions
and
3 deletions
lofar_cryptocoryne/cli.py
+
3
−
3
View file @
d385aafb
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
# SPDX-License-Identifier: Apache-2.0
# SPDX-License-Identifier: Apache-2.0
"""
Cryptocoryne certbot cli entrypoint
"""
"""
Cryptocoryne certbot cli entrypoint
"""
import
acme.errors
import
hvac
import
hvac
import
lofar_cryptocoryne.dns_client
as
desec
import
lofar_cryptocoryne.dns_client
as
desec
...
@@ -38,14 +38,14 @@ def main():
...
@@ -38,14 +38,14 @@ def main():
if
client
.
check_dns_propagation
(
timeout
=
1200
):
if
client
.
check_dns_propagation
(
timeout
=
1200
):
print
(
"
Succeed. Request certificate
"
)
print
(
"
Succeed. Request certificate
"
)
client
.
request_certificate
()
client
.
request_certificate
()
print
(
"
Request done
"
)
certificate
.
fullchain
=
client
.
certificate
certificate
.
fullchain
=
client
.
certificate
print
(
f
"
Certificate
{
certificate
}
"
)
vault_store
.
put_certificate
(
certificate
)
vault_store
.
put_certificate
(
certificate
)
print
(
"
Done
"
)
print
(
"
Done
"
)
else
:
else
:
print
(
"
Failed to issue certificate for
"
+
str
(
client
.
domains
))
print
(
"
Failed to issue certificate for
"
+
str
(
client
.
domains
))
except
acme
.
errors
.
ValidationError
as
ve
:
print
(
f
"
ValidatinError:
{
ve
.
failed_authzrs
}
"
)
except
Exception
as
e
:
# pylint: disable=broad-exception-caught
except
Exception
as
e
:
# pylint: disable=broad-exception-caught
print
(
f
"
{
type
(
e
)
}
:
{
e
}
"
)
print
(
f
"
{
type
(
e
)
}
:
{
e
}
"
)
finally
:
finally
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment