From fa63b91211c20ff7f9aeba5c4a6dbbd33dd6406c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Fri, 4 Jun 2021 09:09:59 +0200 Subject: [PATCH] grandlyon: use combo json export format (#54180) --- grandlyon/scripts/copy-portal-agent.py | 2 +- grandlyon/scripts/copy-portal-users.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/grandlyon/scripts/copy-portal-agent.py b/grandlyon/scripts/copy-portal-agent.py index 8a4051e..55514bc 100644 --- a/grandlyon/scripts/copy-portal-agent.py +++ b/grandlyon/scripts/copy-portal-agent.py @@ -20,7 +20,7 @@ else: orig_site = 'portail-agent-%s.guichet-recette.grandlyon.com' % slug_orig_city dest_site = 'portail-agent-%s.guichet-recette.grandlyon.com' % slug_dest_city -site_export_orig = subprocess.check_output(['sudo', '-u', 'combo', 'combo-manage', 'tenant_command', 'export_site', '-d', orig_site]) +site_export_orig = subprocess.check_output(['sudo', '-u', 'combo', 'combo-manage', 'tenant_command', 'export_site', '-d', orig_site, '--format-json']) site_export_orig = site_export_orig.decode('utf-8') site_export = site_export_orig.replace(orig_city, dest_city) diff --git a/grandlyon/scripts/copy-portal-users.py b/grandlyon/scripts/copy-portal-users.py index de6b2a1..d801eb9 100644 --- a/grandlyon/scripts/copy-portal-users.py +++ b/grandlyon/scripts/copy-portal-users.py @@ -20,7 +20,7 @@ else: orig_site = 'portail-citoyen-%s.guichet-recette.grandlyon.com' % slug_orig_city dest_site = 'portail-citoyen-%s.guichet-recette.grandlyon.com' % slug_dest_city -site_export_orig = subprocess.check_output(['sudo', '-u', 'combo', 'combo-manage', 'tenant_command', 'export_site', '-d', orig_site]) +site_export_orig = subprocess.check_output(['sudo', '-u', 'combo', 'combo-manage', 'tenant_command', 'export_site', '-d', orig_site, '--format-json']) site_export_orig = site_export_orig.decode('utf-8') site_export = site_export_orig.replace(orig_city, dest_city)