From 5f3626b147e419f11979cc84b92016b05096cd3b Mon Sep 17 00:00:00 2001 From: Miguel Angel Date: Thu, 13 Feb 2020 14:42:53 +0100 Subject: [PATCH] configure: Escape key field for mysql query --- tasks/configure.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/configure.yml b/tasks/configure.yml index 986ba21f..9059bae3 100644 --- a/tasks/configure.yml +++ b/tasks/configure.yml @@ -24,7 +24,7 @@ - name: "Get SS API Key" shell: > - echo "select key from tastypie_apikey where id in (select id from auth_user where username = '{{ archivematica_src_configure_ss_user }}');" + echo "select \`key\` from tastypie_apikey where id in (select id from auth_user where username = '{{ archivematica_src_configure_ss_user }}');" | {{ archivematica_src_ss_virtualenv }}/bin/python manage.py dbshell args: chdir: "{{ archivematica_src_ss_app }}"