mirror of
https://github.com/ansible/awx.git
synced 2026-02-25 23:16:01 -03:30
slight cleanup and refactor of Schedule.timezone property
This commit is contained in:
@@ -745,7 +745,11 @@ class ScheduleZoneInfo(APIView):
|
||||
swagger_topic = 'System Configuration'
|
||||
|
||||
def get(self, request):
|
||||
return Response(Schedule.get_zoneinfo())
|
||||
zones = [
|
||||
{'name': zone}
|
||||
for zone in Schedule.get_zoneinfo()
|
||||
]
|
||||
return Response(zones)
|
||||
|
||||
|
||||
class LaunchConfigCredentialsBase(SubListAttachDetachAPIView):
|
||||
|
||||
Reference in New Issue
Block a user