mirror of
https://github.com/ZwareBear/awx.git
synced 2026-04-09 09:31:49 -05:00
Merge pull request #6253 from AlanCoding/smart_error
Fix server error creating smart inventories Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
@@ -1600,7 +1600,7 @@ class InventorySerializer(BaseSerializerWithVariables):
|
||||
})
|
||||
SmartFilter().query_from_string(host_filter)
|
||||
except RuntimeError as e:
|
||||
raise models.base.ValidationError(e)
|
||||
raise models.base.ValidationError(str(e))
|
||||
return host_filter
|
||||
|
||||
def validate(self, attrs):
|
||||
|
||||
Reference in New Issue
Block a user