From 838b793704872c01e35801fad80478635a6ca519 Mon Sep 17 00:00:00 2001 From: Ryan Petrello Date: Wed, 17 Jan 2018 13:37:06 -0500 Subject: [PATCH] fix a minor unicode handling bug in project names see: https://github.com/ansible/ansible-tower/issues/7853 --- awx/api/serializers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/awx/api/serializers.py b/awx/api/serializers.py index 7f8c34372d..f035fe6687 100644 --- a/awx/api/serializers.py +++ b/awx/api/serializers.py @@ -3895,8 +3895,8 @@ class ScheduleSerializer(LaunchConfigurationBaseSerializer): raise serializers.ValidationError(_('Manual Project cannot have a schedule set.')) elif type(value) == InventorySource and value.source == 'scm' and value.update_on_project_update: raise serializers.ValidationError(_( - 'Inventory sources with `update_on_project_update` cannot be scheduled. ' - 'Schedule its source project `{}` instead.'.format(value.source_project.name))) + six.text_type('Inventory sources with `update_on_project_update` cannot be scheduled. ' + 'Schedule its source project `{}` instead.').format(value.source_project.name))) return value # We reject rrules if: