Commit 51b595a1 authored by Nikolai Kristiansen's avatar Nikolai Kristiansen
Browse files

feat: better pxe error message

parent 093fae0f
......@@ -34,7 +34,9 @@ class HostPXEValidateSerializer(serializers.Serializer):
raise ValidationError('Host \'{}\' has no pxe_key.'.format(attrs['certname']))
if host.pxe_key != attrs['pxe_key']:
raise ValidationError('Supplied pxe_key does not match host \'{}\'.'.format(attrs['certname']))
raise ValidationError('Supplied pxe_key \'{}\' does not match host \'{}\'.'.format(
attrs['pxe_key'],
attrs['certname']))
self.host = host
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment