From d4a25f46eccf597424ab052906c491bb05e48452 Mon Sep 17 00:00:00 2001
From: David Loup <david.loup@inria.fr>
Date: Wed, 10 Jun 2020 10:08:20 +0200
Subject: [PATCH] [gen/reference-api] Set 'exotic=no' at cluster level if not
 specified in input yaml

---
 data/grid5000/sites/grenoble/clusters/dahu/dahu.json             | 1 +
 data/grid5000/sites/grenoble/clusters/troll/troll.json           | 1 +
 data/grid5000/sites/grenoble/clusters/yeti/yeti.json             | 1 +
 data/grid5000/sites/lille/clusters/chetemi/chetemi.json          | 1 +
 data/grid5000/sites/lille/clusters/chiclet/chiclet.json          | 1 +
 data/grid5000/sites/lille/clusters/chifflet/chifflet.json        | 1 +
 data/grid5000/sites/lille/clusters/chifflot/chifflot.json        | 1 +
 data/grid5000/sites/luxembourg/clusters/granduc/granduc.json     | 1 +
 .../sites/luxembourg/clusters/petitprince/petitprince.json       | 1 +
 data/grid5000/sites/lyon/clusters/gemini/gemini.json             | 1 +
 data/grid5000/sites/lyon/clusters/hercule/hercule.json           | 1 +
 data/grid5000/sites/lyon/clusters/nova/nova.json                 | 1 +
 data/grid5000/sites/lyon/clusters/orion/orion.json               | 1 +
 data/grid5000/sites/lyon/clusters/sagittaire/sagittaire.json     | 1 +
 data/grid5000/sites/lyon/clusters/taurus/taurus.json             | 1 +
 data/grid5000/sites/nancy/clusters/graffiti/graffiti.json        | 1 +
 data/grid5000/sites/nancy/clusters/graoully/graoully.json        | 1 +
 data/grid5000/sites/nancy/clusters/graphique/graphique.json      | 1 +
 data/grid5000/sites/nancy/clusters/graphite/graphite.json        | 1 +
 data/grid5000/sites/nancy/clusters/grcinq/grcinq.json            | 1 +
 data/grid5000/sites/nancy/clusters/grele/grele.json              | 1 +
 data/grid5000/sites/nancy/clusters/grimani/grimani.json          | 1 +
 data/grid5000/sites/nancy/clusters/grimoire/grimoire.json        | 1 +
 data/grid5000/sites/nancy/clusters/grisou/grisou.json            | 1 +
 data/grid5000/sites/nancy/clusters/gros/gros.json                | 1 +
 data/grid5000/sites/nancy/clusters/grue/grue.json                | 1 +
 data/grid5000/sites/nancy/clusters/grvingt/grvingt.json          | 1 +
 data/grid5000/sites/nantes/clusters/econome/econome.json         | 1 +
 data/grid5000/sites/nantes/clusters/ecotype/ecotype.json         | 1 +
 data/grid5000/sites/rennes/clusters/paranoia/paranoia.json       | 1 +
 data/grid5000/sites/rennes/clusters/parapide/parapide.json       | 1 +
 data/grid5000/sites/rennes/clusters/parapluie/parapluie.json     | 1 +
 data/grid5000/sites/rennes/clusters/parasilo/parasilo.json       | 1 +
 data/grid5000/sites/rennes/clusters/paravance/paravance.json     | 1 +
 data/grid5000/sites/sophia/clusters/suno/suno.json               | 1 +
 data/grid5000/sites/sophia/clusters/uvb/uvb.json                 | 1 +
 lib/refrepo/gen/reference-api.rb                                 | 1 +
 37 files changed, 37 insertions(+)

diff --git a/data/grid5000/sites/grenoble/clusters/dahu/dahu.json b/data/grid5000/sites/grenoble/clusters/dahu/dahu.json
index 29262027e9..f627f0e7e2 100644
--- a/data/grid5000/sites/grenoble/clusters/dahu/dahu.json
+++ b/data/grid5000/sites/grenoble/clusters/dahu/dahu.json
@@ -1,5 +1,6 @@
 {
   "created_at": "Thu, 22 Mar 2018 00:00:00 GMT",
+  "exotic": false,
   "kavlan": true,
   "metrics": [
     {
diff --git a/data/grid5000/sites/grenoble/clusters/troll/troll.json b/data/grid5000/sites/grenoble/clusters/troll/troll.json
index b3e8652e67..3b4663e34e 100644
--- a/data/grid5000/sites/grenoble/clusters/troll/troll.json
+++ b/data/grid5000/sites/grenoble/clusters/troll/troll.json
@@ -1,5 +1,6 @@
 {
   "created_at": "Mon, 23 Dec 2019 00:00:00 GMT",
+  "exotic": false,
   "kavlan": true,
   "metrics": [
     {
diff --git a/data/grid5000/sites/grenoble/clusters/yeti/yeti.json b/data/grid5000/sites/grenoble/clusters/yeti/yeti.json
index e6bbf1da98..bd9f36a78d 100644
--- a/data/grid5000/sites/grenoble/clusters/yeti/yeti.json
+++ b/data/grid5000/sites/grenoble/clusters/yeti/yeti.json
@@ -1,5 +1,6 @@
 {
   "created_at": "Tue, 16 Jan 2018 00:00:00 GMT",
+  "exotic": false,
   "kavlan": true,
   "metrics": [
     {
diff --git a/data/grid5000/sites/lille/clusters/chetemi/chetemi.json b/data/grid5000/sites/lille/clusters/chetemi/chetemi.json
index ce3f436770..3ee8676db9 100644
--- a/data/grid5000/sites/lille/clusters/chetemi/chetemi.json
+++ b/data/grid5000/sites/lille/clusters/chetemi/chetemi.json
@@ -1,5 +1,6 @@
 {
   "created_at": "Thu, 01 Dec 2016 00:00:00 GMT",
+  "exotic": false,
   "kavlan": true,
   "metrics": [
     {
diff --git a/data/grid5000/sites/lille/clusters/chiclet/chiclet.json b/data/grid5000/sites/lille/clusters/chiclet/chiclet.json
index 3c464287db..00824259e6 100644
--- a/data/grid5000/sites/lille/clusters/chiclet/chiclet.json
+++ b/data/grid5000/sites/lille/clusters/chiclet/chiclet.json
@@ -1,5 +1,6 @@
 {
   "created_at": "Mon, 06 Aug 2018 00:00:00 GMT",
+  "exotic": false,
   "kavlan": true,
   "metrics": [
     {
diff --git a/data/grid5000/sites/lille/clusters/chifflet/chifflet.json b/data/grid5000/sites/lille/clusters/chifflet/chifflet.json
index 36ab02a613..b3a1e8552e 100644
--- a/data/grid5000/sites/lille/clusters/chifflet/chifflet.json
+++ b/data/grid5000/sites/lille/clusters/chifflet/chifflet.json
@@ -1,5 +1,6 @@
 {
   "created_at": "Thu, 01 Dec 2016 00:00:00 GMT",
+  "exotic": false,
   "kavlan": true,
   "metrics": [
     {
diff --git a/data/grid5000/sites/lille/clusters/chifflot/chifflot.json b/data/grid5000/sites/lille/clusters/chifflot/chifflot.json
index a3d2534b6e..c9eb540100 100644
--- a/data/grid5000/sites/lille/clusters/chifflot/chifflot.json
+++ b/data/grid5000/sites/lille/clusters/chifflot/chifflot.json
@@ -1,5 +1,6 @@
 {
   "created_at": "Wed, 01 Aug 2018 00:00:00 GMT",
+  "exotic": false,
   "kavlan": true,
   "metrics": [
     {
diff --git a/data/grid5000/sites/luxembourg/clusters/granduc/granduc.json b/data/grid5000/sites/luxembourg/clusters/granduc/granduc.json
index ab44dd56cb..34cc89b052 100644
--- a/data/grid5000/sites/luxembourg/clusters/granduc/granduc.json
+++ b/data/grid5000/sites/luxembourg/clusters/granduc/granduc.json
@@ -1,5 +1,6 @@
 {
   "created_at": "Thu, 01 Dec 2011 00:00:00 GMT",
+  "exotic": false,
   "kavlan": true,
   "metrics": [
     {
diff --git a/data/grid5000/sites/luxembourg/clusters/petitprince/petitprince.json b/data/grid5000/sites/luxembourg/clusters/petitprince/petitprince.json
index e83aa6b2b3..9d90b49441 100644
--- a/data/grid5000/sites/luxembourg/clusters/petitprince/petitprince.json
+++ b/data/grid5000/sites/luxembourg/clusters/petitprince/petitprince.json
@@ -1,5 +1,6 @@
 {
   "created_at": "Tue, 10 Sep 2013 00:00:00 GMT",
+  "exotic": false,
   "kavlan": true,
   "metrics": [
     {
diff --git a/data/grid5000/sites/lyon/clusters/gemini/gemini.json b/data/grid5000/sites/lyon/clusters/gemini/gemini.json
index 2e7aee8213..9ed6637449 100644
--- a/data/grid5000/sites/lyon/clusters/gemini/gemini.json
+++ b/data/grid5000/sites/lyon/clusters/gemini/gemini.json
@@ -1,5 +1,6 @@
 {
   "created_at": "Sun, 01 Sep 2019 00:00:00 GMT",
+  "exotic": false,
   "kavlan": true,
   "metrics": [
     {
diff --git a/data/grid5000/sites/lyon/clusters/hercule/hercule.json b/data/grid5000/sites/lyon/clusters/hercule/hercule.json
index a5142a1d69..cc042c3dac 100644
--- a/data/grid5000/sites/lyon/clusters/hercule/hercule.json
+++ b/data/grid5000/sites/lyon/clusters/hercule/hercule.json
@@ -1,5 +1,6 @@
 {
   "created_at": "Tue, 02 Oct 2012 00:00:00 GMT",
+  "exotic": false,
   "kavlan": true,
   "metrics": [
     {
diff --git a/data/grid5000/sites/lyon/clusters/nova/nova.json b/data/grid5000/sites/lyon/clusters/nova/nova.json
index 150f669cae..3071a98285 100644
--- a/data/grid5000/sites/lyon/clusters/nova/nova.json
+++ b/data/grid5000/sites/lyon/clusters/nova/nova.json
@@ -1,5 +1,6 @@
 {
   "created_at": "Thu, 01 Dec 2016 00:00:00 GMT",
+  "exotic": false,
   "kavlan": true,
   "metrics": [
     {
diff --git a/data/grid5000/sites/lyon/clusters/orion/orion.json b/data/grid5000/sites/lyon/clusters/orion/orion.json
index e65d690659..ad91fdebf4 100644
--- a/data/grid5000/sites/lyon/clusters/orion/orion.json
+++ b/data/grid5000/sites/lyon/clusters/orion/orion.json
@@ -1,5 +1,6 @@
 {
   "created_at": "Fri, 14 Sep 2012 00:00:00 GMT",
+  "exotic": false,
   "kavlan": true,
   "metrics": [
     {
diff --git a/data/grid5000/sites/lyon/clusters/sagittaire/sagittaire.json b/data/grid5000/sites/lyon/clusters/sagittaire/sagittaire.json
index f7ab6d694f..f4049ce26f 100644
--- a/data/grid5000/sites/lyon/clusters/sagittaire/sagittaire.json
+++ b/data/grid5000/sites/lyon/clusters/sagittaire/sagittaire.json
@@ -1,5 +1,6 @@
 {
   "created_at": "Sat, 01 Jul 2006 00:00:00 GMT",
+  "exotic": false,
   "kavlan": true,
   "metrics": [
     {
diff --git a/data/grid5000/sites/lyon/clusters/taurus/taurus.json b/data/grid5000/sites/lyon/clusters/taurus/taurus.json
index 8e5bf3bafe..f4d79303ec 100644
--- a/data/grid5000/sites/lyon/clusters/taurus/taurus.json
+++ b/data/grid5000/sites/lyon/clusters/taurus/taurus.json
@@ -1,5 +1,6 @@
 {
   "created_at": "Fri, 14 Sep 2012 00:00:00 GMT",
+  "exotic": false,
   "kavlan": true,
   "metrics": [
     {
diff --git a/data/grid5000/sites/nancy/clusters/graffiti/graffiti.json b/data/grid5000/sites/nancy/clusters/graffiti/graffiti.json
index 12b1f36979..dee727ae2e 100644
--- a/data/grid5000/sites/nancy/clusters/graffiti/graffiti.json
+++ b/data/grid5000/sites/nancy/clusters/graffiti/graffiti.json
@@ -1,5 +1,6 @@
 {
   "created_at": "Fri, 07 Jun 2019 00:00:00 GMT",
+  "exotic": false,
   "kavlan": true,
   "metrics": [
     {
diff --git a/data/grid5000/sites/nancy/clusters/graoully/graoully.json b/data/grid5000/sites/nancy/clusters/graoully/graoully.json
index f0bcd8fe1b..27ce73840d 100644
--- a/data/grid5000/sites/nancy/clusters/graoully/graoully.json
+++ b/data/grid5000/sites/nancy/clusters/graoully/graoully.json
@@ -1,5 +1,6 @@
 {
   "created_at": "Mon, 04 Jan 2016 00:00:00 GMT",
+  "exotic": false,
   "kavlan": true,
   "metrics": [
     {
diff --git a/data/grid5000/sites/nancy/clusters/graphique/graphique.json b/data/grid5000/sites/nancy/clusters/graphique/graphique.json
index 06ba8db5d5..103e46cc25 100644
--- a/data/grid5000/sites/nancy/clusters/graphique/graphique.json
+++ b/data/grid5000/sites/nancy/clusters/graphique/graphique.json
@@ -1,5 +1,6 @@
 {
   "created_at": "Tue, 12 May 2015 00:00:00 GMT",
+  "exotic": false,
   "kavlan": true,
   "metrics": [
     {
diff --git a/data/grid5000/sites/nancy/clusters/graphite/graphite.json b/data/grid5000/sites/nancy/clusters/graphite/graphite.json
index c01dba6353..1ff2c71367 100644
--- a/data/grid5000/sites/nancy/clusters/graphite/graphite.json
+++ b/data/grid5000/sites/nancy/clusters/graphite/graphite.json
@@ -1,5 +1,6 @@
 {
   "created_at": "Thu, 05 Dec 2013 00:00:00 GMT",
+  "exotic": false,
   "kavlan": true,
   "metrics": [
     {
diff --git a/data/grid5000/sites/nancy/clusters/grcinq/grcinq.json b/data/grid5000/sites/nancy/clusters/grcinq/grcinq.json
index cb8ea2eaba..32dd85517b 100644
--- a/data/grid5000/sites/nancy/clusters/grcinq/grcinq.json
+++ b/data/grid5000/sites/nancy/clusters/grcinq/grcinq.json
@@ -1,5 +1,6 @@
 {
   "created_at": "Tue, 09 Apr 2013 00:00:00 GMT",
+  "exotic": false,
   "kavlan": true,
   "metrics": [
     {
diff --git a/data/grid5000/sites/nancy/clusters/grele/grele.json b/data/grid5000/sites/nancy/clusters/grele/grele.json
index c041e0cd03..7346acd558 100644
--- a/data/grid5000/sites/nancy/clusters/grele/grele.json
+++ b/data/grid5000/sites/nancy/clusters/grele/grele.json
@@ -1,5 +1,6 @@
 {
   "created_at": "Mon, 26 Jun 2017 00:00:00 GMT",
+  "exotic": false,
   "kavlan": true,
   "metrics": [
     {
diff --git a/data/grid5000/sites/nancy/clusters/grimani/grimani.json b/data/grid5000/sites/nancy/clusters/grimani/grimani.json
index 2a55475d33..34dbce1240 100644
--- a/data/grid5000/sites/nancy/clusters/grimani/grimani.json
+++ b/data/grid5000/sites/nancy/clusters/grimani/grimani.json
@@ -1,5 +1,6 @@
 {
   "created_at": "Tue, 30 Aug 2016 00:00:00 GMT",
+  "exotic": false,
   "kavlan": true,
   "metrics": [
     {
diff --git a/data/grid5000/sites/nancy/clusters/grimoire/grimoire.json b/data/grid5000/sites/nancy/clusters/grimoire/grimoire.json
index 99a975c630..6ba365f0e2 100644
--- a/data/grid5000/sites/nancy/clusters/grimoire/grimoire.json
+++ b/data/grid5000/sites/nancy/clusters/grimoire/grimoire.json
@@ -1,5 +1,6 @@
 {
   "created_at": "Fri, 22 Jan 2016 00:00:00 GMT",
+  "exotic": false,
   "kavlan": true,
   "metrics": [
     {
diff --git a/data/grid5000/sites/nancy/clusters/grisou/grisou.json b/data/grid5000/sites/nancy/clusters/grisou/grisou.json
index 112fdf6f9d..f42f103eb7 100644
--- a/data/grid5000/sites/nancy/clusters/grisou/grisou.json
+++ b/data/grid5000/sites/nancy/clusters/grisou/grisou.json
@@ -1,5 +1,6 @@
 {
   "created_at": "Mon, 04 Jan 2016 00:00:00 GMT",
+  "exotic": false,
   "kavlan": true,
   "metrics": [
     {
diff --git a/data/grid5000/sites/nancy/clusters/gros/gros.json b/data/grid5000/sites/nancy/clusters/gros/gros.json
index 68f3b620a5..064f4e2788 100644
--- a/data/grid5000/sites/nancy/clusters/gros/gros.json
+++ b/data/grid5000/sites/nancy/clusters/gros/gros.json
@@ -1,5 +1,6 @@
 {
   "created_at": "Wed, 04 Sep 2019 00:00:00 GMT",
+  "exotic": false,
   "kavlan": true,
   "metrics": [
     {
diff --git a/data/grid5000/sites/nancy/clusters/grue/grue.json b/data/grid5000/sites/nancy/clusters/grue/grue.json
index 691d3925dd..1ece0a49e4 100644
--- a/data/grid5000/sites/nancy/clusters/grue/grue.json
+++ b/data/grid5000/sites/nancy/clusters/grue/grue.json
@@ -1,5 +1,6 @@
 {
   "created_at": "Mon, 25 Nov 2019 00:00:00 GMT",
+  "exotic": false,
   "kavlan": true,
   "metrics": [
     {
diff --git a/data/grid5000/sites/nancy/clusters/grvingt/grvingt.json b/data/grid5000/sites/nancy/clusters/grvingt/grvingt.json
index 12955ad768..e648cffb1b 100644
--- a/data/grid5000/sites/nancy/clusters/grvingt/grvingt.json
+++ b/data/grid5000/sites/nancy/clusters/grvingt/grvingt.json
@@ -1,5 +1,6 @@
 {
   "created_at": "Wed, 11 Apr 2018 00:00:00 GMT",
+  "exotic": false,
   "kavlan": true,
   "metrics": [
     {
diff --git a/data/grid5000/sites/nantes/clusters/econome/econome.json b/data/grid5000/sites/nantes/clusters/econome/econome.json
index 6acfaa18ba..249bc4d989 100644
--- a/data/grid5000/sites/nantes/clusters/econome/econome.json
+++ b/data/grid5000/sites/nantes/clusters/econome/econome.json
@@ -1,5 +1,6 @@
 {
   "created_at": "Wed, 16 Apr 2014 00:00:00 GMT",
+  "exotic": false,
   "kavlan": true,
   "metrics": [
     {
diff --git a/data/grid5000/sites/nantes/clusters/ecotype/ecotype.json b/data/grid5000/sites/nantes/clusters/ecotype/ecotype.json
index c82931d2fe..2c3b6b6f9d 100644
--- a/data/grid5000/sites/nantes/clusters/ecotype/ecotype.json
+++ b/data/grid5000/sites/nantes/clusters/ecotype/ecotype.json
@@ -1,5 +1,6 @@
 {
   "created_at": "Mon, 16 Oct 2017 00:00:00 GMT",
+  "exotic": false,
   "kavlan": true,
   "metrics": [
     {
diff --git a/data/grid5000/sites/rennes/clusters/paranoia/paranoia.json b/data/grid5000/sites/rennes/clusters/paranoia/paranoia.json
index c157411408..b8291c8ff2 100644
--- a/data/grid5000/sites/rennes/clusters/paranoia/paranoia.json
+++ b/data/grid5000/sites/rennes/clusters/paranoia/paranoia.json
@@ -1,5 +1,6 @@
 {
   "created_at": "Fri, 21 Feb 2014 00:00:00 GMT",
+  "exotic": false,
   "kavlan": true,
   "metrics": [
     {
diff --git a/data/grid5000/sites/rennes/clusters/parapide/parapide.json b/data/grid5000/sites/rennes/clusters/parapide/parapide.json
index fd3c29b5aa..0c6d5ba83d 100644
--- a/data/grid5000/sites/rennes/clusters/parapide/parapide.json
+++ b/data/grid5000/sites/rennes/clusters/parapide/parapide.json
@@ -1,5 +1,6 @@
 {
   "created_at": "Mon, 25 Jan 2010 00:00:00 GMT",
+  "exotic": false,
   "kavlan": true,
   "metrics": [
     {
diff --git a/data/grid5000/sites/rennes/clusters/parapluie/parapluie.json b/data/grid5000/sites/rennes/clusters/parapluie/parapluie.json
index afbd6c7e29..9c1e76a6b9 100644
--- a/data/grid5000/sites/rennes/clusters/parapluie/parapluie.json
+++ b/data/grid5000/sites/rennes/clusters/parapluie/parapluie.json
@@ -1,5 +1,6 @@
 {
   "created_at": "Tue, 02 Nov 2010 00:00:00 GMT",
+  "exotic": false,
   "kavlan": true,
   "metrics": [
     {
diff --git a/data/grid5000/sites/rennes/clusters/parasilo/parasilo.json b/data/grid5000/sites/rennes/clusters/parasilo/parasilo.json
index 69fae18cda..04aa91aeee 100644
--- a/data/grid5000/sites/rennes/clusters/parasilo/parasilo.json
+++ b/data/grid5000/sites/rennes/clusters/parasilo/parasilo.json
@@ -1,5 +1,6 @@
 {
   "created_at": "Tue, 13 Jan 2015 00:00:00 GMT",
+  "exotic": false,
   "kavlan": true,
   "metrics": [
     {
diff --git a/data/grid5000/sites/rennes/clusters/paravance/paravance.json b/data/grid5000/sites/rennes/clusters/paravance/paravance.json
index 2eb5d958f5..83def1b8f0 100644
--- a/data/grid5000/sites/rennes/clusters/paravance/paravance.json
+++ b/data/grid5000/sites/rennes/clusters/paravance/paravance.json
@@ -1,5 +1,6 @@
 {
   "created_at": "Tue, 13 Jan 2015 00:00:00 GMT",
+  "exotic": false,
   "kavlan": true,
   "metrics": [
     {
diff --git a/data/grid5000/sites/sophia/clusters/suno/suno.json b/data/grid5000/sites/sophia/clusters/suno/suno.json
index fe1d1e1b12..2af75c502c 100644
--- a/data/grid5000/sites/sophia/clusters/suno/suno.json
+++ b/data/grid5000/sites/sophia/clusters/suno/suno.json
@@ -1,5 +1,6 @@
 {
   "created_at": "Wed, 27 Jan 2010 00:00:00 GMT",
+  "exotic": false,
   "kavlan": true,
   "metrics": [
     {
diff --git a/data/grid5000/sites/sophia/clusters/uvb/uvb.json b/data/grid5000/sites/sophia/clusters/uvb/uvb.json
index 148b31497e..60bb9d6d32 100644
--- a/data/grid5000/sites/sophia/clusters/uvb/uvb.json
+++ b/data/grid5000/sites/sophia/clusters/uvb/uvb.json
@@ -1,5 +1,6 @@
 {
   "created_at": "Tue, 04 Jan 2011 00:00:00 GMT",
+  "exotic": false,
   "kavlan": true,
   "metrics": [
     {
diff --git a/lib/refrepo/gen/reference-api.rb b/lib/refrepo/gen/reference-api.rb
index f9c396f929..431ce983d7 100644
--- a/lib/refrepo/gen/reference-api.rb
+++ b/lib/refrepo/gen/reference-api.rb
@@ -211,6 +211,7 @@ def generate_reference_api
 
       cluster["type"] = "cluster"
       cluster["uid"]  = cluster_uid
+      cluster["exotic"] = cluster.key?('exotic') ? cluster['exotic'] : false
 
       # On the previous version of this script, cluster["created_ad"] was generated from a Ruby Time. cluster["created_ad"] is now a Ruby Date at JSON import.
       # As Date.httpdate and Time.httpdate does not behave the same with timezone, it is converted here as a Ruby time.
-- 
GitLab