From 64e656909a42705d091af7fcec6ab526c4475175 Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Wed, 20 May 2015 01:03:58 +0000 Subject: [PATCH] Switch from MySQL-python to PyMySQL As discussed in the Liberty Design Summit "Moving apps to Python 3" cross-project workshop, the way forward in the near future is to switch to the pure-python PyMySQL library as a default. https://etherpad.openstack.org/p/liberty-cross-project-python3 Change-Id: I4fd721d6f27bc0125144d960ee5028ce842a60f8 --- firstapp/samples/libcloud/scaling_out.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firstapp/samples/libcloud/scaling_out.py b/firstapp/samples/libcloud/scaling_out.py index 7e2958dae..347e113b4 100644 --- a/firstapp/samples/libcloud/scaling_out.py +++ b/firstapp/samples/libcloud/scaling_out.py @@ -62,7 +62,7 @@ services_ip = instance_services.private_ips[0] userdata = '''#!/usr/bin/env bash curl -L -s http://git.openstack.org/cgit/stackforge/faafo/plain/contrib/install.sh | bash -s -- \ -i faafo -r api -m 'amqp://guest:guest@%(services_ip)s:5672/' \ - -d 'mysql://faafo:password@%(services_ip)s:3306/faafo' + -d 'mysql+pymysql://faafo:password@%(services_ip)s:3306/faafo' ''' % { 'services_ip': services_ip } instance_api_1 = conn.create_node(name='app-api-1', image=image,