Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos-caddy
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Guillaume Hervier
slapos-caddy
Commits
9e340a01
Commit
9e340a01
authored
Oct 04, 2013
by
Cédric de Saint Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sshkeys_authority: don't allow to return None as parameter.
parent
192031f0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
slapos/recipe/sshkeys_authority.py
slapos/recipe/sshkeys_authority.py
+4
-4
No files found.
slapos/recipe/sshkeys_authority.py
View file @
9e340a01
...
...
@@ -113,11 +113,11 @@ class Request(GenericBaseRecipe):
hashlib
.
sha256
(
options
[
'name'
]).
hexdigest
())
self
.
public_key
=
self
.
private_key
+
'.pub'
if
os
.
path
.
exists
(
self
.
public_key
):
with
open
(
self
.
public_key
)
as
key
:
options
[
'public-key-value'
]
=
key
.
read
()
else
:
options
[
'public-key-value'
]
=
''
if
os
.
path
.
exists
(
self
.
public_key
):
key_content
=
open
(
self
.
public_key
).
read
()
if
key_content
:
options
[
'public-key-value'
]
=
key_content
def
install
(
self
):
requests_directory
=
self
.
options
[
'request-directory'
]
...
...
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