From 6d79896b0454f711b1e7dde11d2c4b950448bf98 Mon Sep 17 00:00:00 2001
From: Guido Trotter <ultrotter@google.com>
Date: Fri, 2 Oct 2009 11:27:40 +0100
Subject: [PATCH] Add slot and constant for supported OS variants

The slot will contain a list of variants, and the variants file constant
contains the file in the os dir which is supposed to hold the list.

Signed-off-by: Guido Trotter <ultrotter@google.com>
Reviewed-by: Olivier Tharan <olive@google.com>
---
 lib/constants.py | 1 +
 lib/objects.py   | 1 +
 2 files changed, 2 insertions(+)

diff --git a/lib/constants.py b/lib/constants.py
index 636832b19..7847316d8 100644
--- a/lib/constants.py
+++ b/lib/constants.py
@@ -329,6 +329,7 @@ OS_SCRIPTS = frozenset([OS_SCRIPT_CREATE, OS_SCRIPT_IMPORT,
                         OS_SCRIPT_EXPORT, OS_SCRIPT_RENAME])
 
 OS_API_FILE = 'ganeti_api_version'
+OS_VARIANTS_FILE = 'variants.list'
 
 # ssh constants
 SSH_INITD_SCRIPT = _autoconf.SSH_INITD_SCRIPT
diff --git a/lib/objects.py b/lib/objects.py
index c2bb0d9be..510518ab1 100644
--- a/lib/objects.py
+++ b/lib/objects.py
@@ -786,6 +786,7 @@ class OS(ConfigObject):
     "export_script",
     "import_script",
     "rename_script",
+    "supported_variants",
     ]
 
 
-- 
GitLab