fix a minor unicode handling bug in project names

see: https://github.com/ansible/ansible-tower/issues/7853
This commit is contained in:
Ryan Petrello 2018-01-17 13:37:06 -05:00
parent 1a98cedc0f
commit 838b793704
No known key found for this signature in database
GPG Key ID: F2AA5F2122351777

View File

@ -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: