mirror of
https://github.com/ansible/awx.git
synced 2026-01-19 05:31:22 -03:30
fix a minor unicode handling bug in project names
see: https://github.com/ansible/ansible-tower/issues/7853
This commit is contained in:
parent
1a98cedc0f
commit
838b793704
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user