From 057728b774140e37b04af3b66ab2aa03a38866b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jelizaveta=20Leme=C5=A1eva?= Date: Fri, 28 May 2021 11:13:31 +0300 Subject: [PATCH 1/2] Allow sites to be initialized with tenants --- initializers/sites.yml | 1 + startup_scripts/{110_tenant_groups.py => 020_tenant_groups.py} | 0 startup_scripts/{120_tenants.py => 030_tenants.py} | 0 3 files changed, 1 insertion(+) rename startup_scripts/{110_tenant_groups.py => 020_tenant_groups.py} (100%) rename startup_scripts/{120_tenants.py => 030_tenants.py} (100%) diff --git a/initializers/sites.yml b/initializers/sites.yml index 0015f4e..bbda54e 100644 --- a/initializers/sites.yml +++ b/initializers/sites.yml @@ -28,5 +28,6 @@ # status: active # facility: Singapore 1 # asn: 09876 +# tenant: tenant1 # custom_field_data: # text_field: Description for SING1 diff --git a/startup_scripts/110_tenant_groups.py b/startup_scripts/020_tenant_groups.py similarity index 100% rename from startup_scripts/110_tenant_groups.py rename to startup_scripts/020_tenant_groups.py diff --git a/startup_scripts/120_tenants.py b/startup_scripts/030_tenants.py similarity index 100% rename from startup_scripts/120_tenants.py rename to startup_scripts/030_tenants.py From 15b097bd3eb9427ddb9df6d4dc9a60f2513163aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jelizaveta=20Leme=C5=A1eva?= Date: Tue, 1 Jun 2021 14:22:08 +0300 Subject: [PATCH 2/2] Add second tenant with group to site --- initializers/sites.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/initializers/sites.yml b/initializers/sites.yml index bbda54e..7ace3aa 100644 --- a/initializers/sites.yml +++ b/initializers/sites.yml @@ -20,6 +20,7 @@ # status: active # facility: Amsterdam 3 # asn: 67890 +# tenant: tenant1 # custom_field_data: # text_field: Description for AMS3 # - name: SING 1 @@ -28,6 +29,6 @@ # status: active # facility: Singapore 1 # asn: 09876 -# tenant: tenant1 +# tenant: tenant2 # custom_field_data: # text_field: Description for SING1