From 3cf66d4a80a8807e3e815f493c61dd823ac727a6 Mon Sep 17 00:00:00 2001 From: Pedro Algarvio Date: Thu, 7 Aug 2014 14:18:04 +0100 Subject: [PATCH] Reduce conversions and parsing --- salt/runners/manage.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/salt/runners/manage.py b/salt/runners/manage.py index d33c189f58..3ec9919bb8 100644 --- a/salt/runners/manage.py +++ b/salt/runners/manage.py @@ -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: