Lint: Fixup undefined variable errors

This commit is contained in:
rallytime 2017-10-11 09:25:41 -04:00
parent 788ad0609a
commit 1d4a6c3949
No known key found for this signature in database
GPG Key ID: E8F1A4B90D0DEA19

View File

@ -190,8 +190,9 @@ class WriteSaltVersion(Command):
exit(1)
if not self.distribution.with_salt_version:
salt_version = __saltstack_version__
salt_version = __saltstack_version__ # pylint: disable=undefined-variable
else:
from salt.version import SaltStackVersion
salt_version = SaltStackVersion.parse(self.distribution.with_salt_version)
# pylint: disable=E0602