mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
Reduce conversions and parsing
This commit is contained in:
parent
ca30b7783c
commit
3cf66d4a80
@ -235,7 +235,7 @@ def versions():
|
||||
|
||||
version_status = {}
|
||||
|
||||
master_version = salt.version.SaltStackVersion.parse(salt.__version__)
|
||||
master_version = salt.version.__saltstack_version__
|
||||
|
||||
for minion in minions:
|
||||
minion_version = salt.version.SaltStackVersion.parse(minions[minion])
|
||||
@ -243,10 +243,10 @@ def versions():
|
||||
|
||||
if ver_diff not in version_status:
|
||||
version_status[ver_diff] = {}
|
||||
version_status[ver_diff][minion] = str(minion_version)
|
||||
version_status[ver_diff][minion] = minion_version.string
|
||||
|
||||
# Add version of Master to output
|
||||
version_status[2] = str(master_version)
|
||||
version_status[2] = master_version.string
|
||||
|
||||
ret = {}
|
||||
for key in version_status:
|
||||
|
Loading…
Reference in New Issue
Block a user