Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
vmdriver
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
2
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
032250b2
authored
Aug 09, 2016
by
Czémán Arnold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ceph: add error handling for get_secret_key()
parent
e89c44d4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
ceph.py
+7
-3
No files found.
ceph.py
View file @
032250b2
...
@@ -82,9 +82,13 @@ def map_rbd(conf, ceph_path, local_path):
...
@@ -82,9 +82,13 @@ def map_rbd(conf, ceph_path, local_path):
def
get_secret_key
(
conf
):
def
get_secret_key
(
conf
):
return
subprocess
.
check_output
(
try
:
([
"/usr/bin/ceph"
,
"auth"
,
"print-key"
,
"client.
%
s"
%
conf
.
user
]
+
return
subprocess
.
check_output
(
conf
.
cmd_args
()))
([
"/usr/bin/ceph"
,
"auth"
,
"print-key"
,
"client.
%
s"
%
conf
.
user
]
+
conf
.
cmd_args
()))
except
subprocess
.
CalledProcessError
as
e
:
logger
.
error
(
e
)
return
None
def
parse_endpoint
(
mon
):
def
parse_endpoint
(
mon
):
...
...
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