Add MonD's latest HTTP API version in lib/constants.py.

Signed-off-by: Spyros Trigazis <[email protected]>
---
 lib/constants.py                |    3 +++
 src/Ganeti/Monitoring/Server.hs |    2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/lib/constants.py b/lib/constants.py
index 218e937..6e79f85 100644
--- a/lib/constants.py
+++ b/lib/constants.py
@@ -2257,6 +2257,9 @@ CPUAVGLOAD_WINDOW_SIZE = 600
 # Mond's variable for periodical data collection
 MOND_TIME_INTERVAL = _constants.MOND_TIME_INTERVAL
 
+# MonD's latest API version
+MOND_LATEST_API_VERSION = 1
+
 # Do not re-export imported modules
 del re, _vcsversion, _constants, socket, pathutils, compat
 
diff --git a/src/Ganeti/Monitoring/Server.hs b/src/Ganeti/Monitoring/Server.hs
index d30c7d1..59968d2 100644
--- a/src/Ganeti/Monitoring/Server.hs
+++ b/src/Ganeti/Monitoring/Server.hs
@@ -63,7 +63,7 @@ type PrepResult = Config Snap ()
 
 -- | Version of the latest supported http API.
 latestAPIVersion :: Int
-latestAPIVersion = 1
+latestAPIVersion = C.mondLatestApiVersion
 
 -- | A report of a data collector might be stateful or stateless.
 data Report = StatelessR (IO DCReport)
-- 
1.7.10.4

Reply via email to