-
Notifications
You must be signed in to change notification settings - Fork 10
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
Migrate from Python2 to Python 3 #76
Conversation
output = mysql_proc.stdout.read() | ||
msg = f"Error dropping MySQL database {options.dbname}: {output}" | ||
error_and_exit(msg) | ||
print("Done.") | ||
|
||
|
||
def grant_rw_access(options): |
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.
I don't know why git is not highlighting this line. In the main branch, the options
argument is not defined and thus I cannot understand how this could work
voms-admin-server/voms-admin-server/resources/scripts/configure/voms_mysql_util.py
Line 190 in 5602fab
def grant_ro_access(): |
I added the argument because how I guess that function was supposed to be used.
Can I contribute a pre-commit hook to run flake8 / black on the scripts ? Can we add an action to validate the python3? |
Superseded by PR #78 |
Hi @brucellino! Thank you for reaching us, your contribution is very welcome! We can discuss the development in this issue #77. |
This PR is a draft, even though "complete", since it hasn't been tested due to the lack of documentation about its usage.