mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Lint: Fixup undefined variable errors
This commit is contained in:
parent
788ad0609a
commit
1d4a6c3949
1 changed files with 2 additions and 1 deletions
3
setup.py
3
setup.py
|
@ -190,8 +190,9 @@ class WriteSaltVersion(Command):
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
||||||
if not self.distribution.with_salt_version:
|
if not self.distribution.with_salt_version:
|
||||||
salt_version = __saltstack_version__
|
salt_version = __saltstack_version__ # pylint: disable=undefined-variable
|
||||||
else:
|
else:
|
||||||
|
from salt.version import SaltStackVersion
|
||||||
salt_version = SaltStackVersion.parse(self.distribution.with_salt_version)
|
salt_version = SaltStackVersion.parse(self.distribution.with_salt_version)
|
||||||
|
|
||||||
# pylint: disable=E0602
|
# pylint: disable=E0602
|
||||||
|
|
Loading…
Add table
Reference in a new issue