Commit a66c2f35 by Czémán Arnold

ceph: add a secretkey check

parent 99c65048
...@@ -176,6 +176,8 @@ def find_secret(user): ...@@ -176,6 +176,8 @@ def find_secret(user):
def create_secret(user): def create_secret(user):
conf = CephConfig(user=user) conf = CephConfig(user=user)
secretkey = get_secret_key(conf) secretkey = get_secret_key(conf)
if secretkey is None:
raise Exception("Secret file not found.")
xml = generate_secret_xml(user) xml = generate_secret_xml(user)
conn = Connection.get() conn = Connection.get()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment