Skip to content

Commit

Permalink
Merge pull request #1 from akashvacher/demote
Browse files Browse the repository at this point in the history
Fixed flake8 errors for kafka/tools/assigner/actions/demote.py
  • Loading branch information
ambroff committed Jul 9, 2018
2 parents fe7e188 + 0057090 commit de804a3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions kafka/tools/assigner/actions/demote.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@ def __init__(self, args, cluster):
def _add_args(cls, parser):
parser.add_argument(
'-b', '--brokers', type=int, help='List of broker ids to demote', required=True, nargs='*')
parser.add_argument('-t', '--topics', required=False, nargs='*', help=\
'Optional list of topics to use. If not specified, leadership of all topics lead by the brokers to ' \
'demote will be changed.')
parser.add_argument('-t', '--topics', required=False, nargs='*',
help='Optional list of topics to use. If not specified, leadership of all topics lead by the brokers to demote will be changed.')

def process_cluster(self):
brokers_to_demote = set(self.args.brokers)
Expand Down

0 comments on commit de804a3

Please sign in to comment.