
assigning @nixocio because he is familiar with this code.
Interestingly, this results in an instance group, instead of a container group, if you hit back. this should be double-checked.
This is somehow related to https://github.com/ansible/awx/issues/8184
The API does not enforce a credential as required field for the instance_groups endpoint. And if a credential is not provided the resource type created will be instance groups, if a credential, OpenShift or Kubernetes API Bearer Token is provide it will be a container group. But since the UI is not enforcing a required Credential when creating a Container group. This issue was raised. That is why is related to https://github.com/ansible/awx/issues/8184. Once #8184 is fixed, we should revisit this one.
I added a PR for the issue #8184. I will investigate this one now.
It turns out that https://github.com/ansible/awx/pull/8239 fixed this as a side effect. This resolves the issue there. stubs will be included in instance-groups/container-group-operations.spec.
Thanks for looking into this issue @dsesami, even though it was already fixed as a side effect of the #8239. I will update the ContainerGroupDetails code to be a bit more robust.
this can be reclosed with the merge of #8280