mirror of
https://github.com/ansible/awx.git
synced 2026-05-15 13:27:40 -02:30
normalize custom_virtualenv empty values to null
see: https://github.com/ansible/ansible-tower/issues/7923
This commit is contained in:
@@ -441,4 +441,6 @@ class CustomVirtualEnvMixin(models.Model):
|
||||
raise ValidationError(
|
||||
_('{} is not a valid virtualenv in {}').format(value, settings.BASE_VENV_PATH)
|
||||
)
|
||||
return os.path.join(value or '', '')
|
||||
if value:
|
||||
return os.path.join(value, '')
|
||||
return None
|
||||
|
||||
Reference in New Issue
Block a user