-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rm ca.srl
#530
rm ca.srl
#530
Conversation
paddlecloud/notebook/tls.py
Outdated
@@ -36,6 +36,7 @@ def create_user_cert(ca_path, username): | |||
%s/%s.csr -subj \"/CN=%s\""%\ | |||
(user_cert_dir, username, | |||
user_cert_dir, username, username)) | |||
user_cert_cmds.append("rm -f %s/ca.srl" % settings.USER_CERTS_PATH) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In my own curiosity, why delete this file, or could you add some comments here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
@@ -36,6 +36,9 @@ def create_user_cert(ca_path, username): | |||
%s/%s.csr -subj \"/CN=%s\""%\ | |||
(user_cert_dir, username, | |||
user_cert_dir, username, username)) | |||
# FIXME(gongwb):why need delete ca.srl when mount afs path while not need |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FIXME(gongwb): The file ca.srl
containing a serial number will cause an error on the AFS (mount local path by VFS ), delete this file for temporary and make the code work!
Fix #531