This field stores the filename of the script diagnose data collector
should run to get information about node health.

Signed-off-by: BSRK Aditya <[email protected]>
---
 lib/objects.py        |    1 +
 src/Ganeti/Objects.hs |    2 ++
 2 files changed, 3 insertions(+)

diff --git a/lib/objects.py b/lib/objects.py
index 0655443..22ef009 100644
--- a/lib/objects.py
+++ b/lib/objects.py
@@ -1672,6 +1672,7 @@ class Cluster(TaggableObject):
     "compression_tools",
     "enabled_user_shutdown",
     "data_collectors",
+    "diagnose_data_collector_filename",
     ] + _TIMESTAMPS + _UUID
 
   def UpgradeConfig(self):
diff --git a/src/Ganeti/Objects.hs b/src/Ganeti/Objects.hs
index ee4fd70..85f3576 100644
--- a/src/Ganeti/Objects.hs
+++ b/src/Ganeti/Objects.hs
@@ -672,6 +672,8 @@ $(buildObject "Cluster" "cluster" $
   , simpleField "compression_tools"              [t| [String]                |]
   , simpleField "enabled_user_shutdown"          [t| Bool                    |]
   , simpleField "data_collectors"         [t| Container DataCollectorConfig  |]
+  , defaultField [| [] |] $ simpleField
+      "diagnose_data_collector_filename"         [t| String                  |]
  ]
  ++ timeStampFields
  ++ uuidFields
-- 
1.7.10.4

Reply via email to