mirror of
https://github.com/ansible/awx.git
synced 2026-02-15 18:20:00 -03:30
Register pages for the Instance peers and install bundle endpoints
This includes exposing a new interface for Page objects, Page.bytes, to return the full bytestring contents of the response.
This commit is contained in:
@@ -48,9 +48,9 @@ class InstanceInstallBundle(GenericAPIView):
|
||||
instance_obj = self.get_object()
|
||||
|
||||
# if the instance is not a hop or execution node than return 400
|
||||
if instance_obj.node_type not in ('execution', 'hop'):
|
||||
if instance_obj.node_type not in ('execution',):
|
||||
return Response(
|
||||
data=dict(msg=_('Install bundle can only be generated for execution or hop nodes.')),
|
||||
data=dict(msg=_('Install bundle can only be generated for execution nodes.')),
|
||||
status=status.HTTP_400_BAD_REQUEST,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user