mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
variable was referenced before assignment. Just removing the variable and checking the return from distutils.version.LooseVersion directly.
This commit is contained in:
parent
a791b23ff9
commit
d2f0d8fa96
1 changed files with 0 additions and 3 deletions
|
@ -614,9 +614,6 @@ def import_key(user=None,
|
|||
# include another check for Salt unit tests
|
||||
gnupg_version = distutils.version.LooseVersion(gnupg.__version__)
|
||||
if gnupg_version >= '1.3.1':
|
||||
GPG_1_3_1 = True
|
||||
|
||||
if GPG_1_3_1:
|
||||
counts = imported_data.counts
|
||||
if counts.get('imported') or counts.get('imported_rsa'):
|
||||
ret['message'] = 'Successfully imported key(s).'
|
||||
|
|
Loading…
Add table
Reference in a new issue