Skip to content

Fix some linter warnings, part 6#218

Merged
kornicameister merged 7 commits intomonasca:masterfrom
matrixik:fix_lint7
Oct 16, 2017
Merged

Fix some linter warnings, part 6#218
kornicameister merged 7 commits intomonasca:masterfrom
matrixik:fix_lint7

Conversation

@matrixik
Copy link
Member

No description provided.

def create_topic(name, partitions, replicas, configs=None):
if configs:
arg_pairs = map(lambda item: ['--config', '%s=%s' % item],
arg_pairs = map(lambda item: ['--config', '{0}={0}'.format(item)],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

item is a tuple with 2 values, '%' expands this but .format() will not... we don't want '{0}={0}'.format(item) but rather '{0}={1}'.format(*item)

(though to be honest I'm not sure of the utility of converting all % formatting to use .format() anyway...)

Copy link
Member

@timothyb89 timothyb89 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kafka topic creation is broken due to a formatting problem

@matrixik
Copy link
Member Author

matrixik commented Sep 19, 2017

Thx @timothyb89 for you comments.
@digitalfishpond will be looking into this lint problems as a starting point to learn more about this project.

Copy link
Member Author

@matrixik matrixik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks nice now

@kornicameister kornicameister merged commit f7ace6e into monasca:master Oct 16, 2017
@digitalfishpond
Copy link
Contributor

some fixes for #191

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants