mirror of
https://github.com/ansible/awx.git
synced 2026-05-03 23:55:28 -02:30
update zoneinfo endpoint to be a list of dicts
This commit is contained in:
@@ -700,7 +700,10 @@ class ScheduleZoneInfo(APIView):
|
||||
|
||||
def get(self, request):
|
||||
from dateutil.zoneinfo import get_zonefile_instance
|
||||
return Response(sorted(get_zonefile_instance().zones.keys()))
|
||||
return Response([
|
||||
{'name': zone}
|
||||
for zone in sorted(get_zonefile_instance().zones)
|
||||
])
|
||||
|
||||
|
||||
class LaunchConfigCredentialsBase(SubListAttachDetachAPIView):
|
||||
|
||||
Reference in New Issue
Block a user