Packages report updates
- All Errors are warnings by default
- If package version differs across nodes
warning becomes error
Change-Id: I1e6d338cfae252cc5d8ee6ededdd757ec070eb2c
Related-PROD: PROD-38972
diff --git a/cfg_checker/modules/packages/versions.py b/cfg_checker/modules/packages/versions.py
index e16dab8..7fae9fc 100644
--- a/cfg_checker/modules/packages/versions.py
+++ b/cfg_checker/modules/packages/versions.py
@@ -303,17 +303,17 @@
self.action = const.ACT_UPGRADE
elif i < r and r < c:
# installed version is older vs release version
- self.status = const.VERSION_ERR
+ self.status = const.VERSION_WARN
self.action = const.ACT_NEED_UP
self.target = r
elif i < r and c == r:
# installed version is older vs release version
- self.status = const.VERSION_ERR
+ self.status = const.VERSION_WARN
self.action = const.ACT_NEED_UP
self.target = c
elif c < r:
# installed and repo versions older vs release version
- self.status = const.VERSION_ERR
+ self.status = const.VERSION_WARN
self.action = const.ACT_REPO
# I > C
# installed version is newer
@@ -321,7 +321,7 @@
self.target = c
if c == r:
# some unknown version installed
- self.status = const.VERSION_ERR
+ self.status = const.VERSION_WARN
self.action = const.ACT_NEED_DOWN
elif c > r:
# installed and repo versions newer than release