Skip to content

Commit

Permalink
build/deps: workaround a pylint bug
Browse files Browse the repository at this point in the history
Pylint seems to think that `name` is a method instead of a string, which
is wrong.
See pylint-dev/pylint#2062

Refs: #1410
Signed-off-by: Sylvain Laperche <[email protected]>
  • Loading branch information
slaperche-scality committed Jul 15, 2019
1 parent cbddcb7 commit 7a34d8a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions buildchain/buildchain/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ def command_name(self) -> str:
"""Return the name of the command."""
if self is self.OPERATOR_SDK:
return 'operator-sdk'
# See https://github.com/PyCQA/pylint/issues/2062
# pylint: disable=no-member
return self.name.lower()

# }}}

0 comments on commit 7a34d8a

Please sign in to comment.