-
Notifications
You must be signed in to change notification settings - Fork 45
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
add password option #3
base: master
Are you sure you want to change the base?
Conversation
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.
Thanks for you patch.
I'm not sure if it's a good idea to configure the same password auth for each Redis in a cluster. There is some discussion that suggest usage of firewalls rather than a password.
@@ -9,6 +9,7 @@ dump.rdb | |||
|
|||
# Distribution / packaging | |||
.Python | |||
.idea/ |
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.
If you use an IDE that leaves something in the project directory, please add it to your gitignore_global.
__version__ = '0.5.0' | ||
REPO = 'https://github.com/HunanTV/redis-trib.py' | ||
__version__ = '0.0.1' | ||
REPO = 'https://github.com/Negashev/redis-trib.py' |
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 will appreciate if you could take care of this project but could you please use a higher version number?
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.
sure
@@ -80,11 +80,11 @@ def addslots(t, begin, end): | |||
addslots(t, begin, end) | |||
|
|||
|
|||
def create(host_port_list, max_slots=1024): | |||
def create(host_port_list, password=None, max_slots=1024): |
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.
The new optional parameter should be append after existing parameters for API compatible.
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 try to fix it
I think this will help some developers to make a secure cluster