Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos-mynij-dev
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
Mynij
slapos-mynij-dev
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
Hide 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'
options
[
'public-key-value'
]
=
''
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'
]
=
''
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