summaryrefslogtreecommitdiffstats
path: root/grandlyon/scripts/copy-portal-agent.py
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2021-06-04 07:09:59 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2021-06-04 07:09:59 (GMT)
commitfa63b91211c20ff7f9aeba5c4a6dbbd33dd6406c (patch)
tree9f254bcfee0c53cc89cf12a768162e603433beff /grandlyon/scripts/copy-portal-agent.py
parenta1ed48f3bda1373a5ca849dbe56e20d9b1e0dba7 (diff)
downloadmisc-fred-fa63b91211c20ff7f9aeba5c4a6dbbd33dd6406c.zip
misc-fred-fa63b91211c20ff7f9aeba5c4a6dbbd33dd6406c.tar.gz
misc-fred-fa63b91211c20ff7f9aeba5c4a6dbbd33dd6406c.tar.bz2
grandlyon: use combo json export format (#54180)
Diffstat (limited to 'grandlyon/scripts/copy-portal-agent.py')
-rw-r--r--grandlyon/scripts/copy-portal-agent.py2
1 files changed, 1 insertions, 1 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)