mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 09:40:20 +00:00
Properly repr()
Salt versions >= 3006.0
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
parent
c4beeb8fb9
commit
9db146a157
1 changed files with 1 additions and 1 deletions
|
@ -554,7 +554,7 @@ class SaltStackVersion:
|
|||
parts.extend(["major={}".format(self.major), "minor={}".format(self.minor)])
|
||||
|
||||
if self.new_version(self.major):
|
||||
if not self.minor:
|
||||
if not self.can_have_dot_zero(self.major) and not self.minor:
|
||||
parts.remove("".join([x for x in parts if re.search("^minor*", x)]))
|
||||
else:
|
||||
parts.extend(["bugfix={}".format(self.bugfix)])
|
||||
|
|
Loading…
Add table
Reference in a new issue