Change default pod spec in OPTIONS request to json

This commit is contained in:
Shane McDonald
2019-09-27 12:58:09 -04:00
parent ad1e7c46c3
commit 59413e0a8f
2 changed files with 37 additions and 5 deletions

View File

@@ -2,7 +2,6 @@
# All Rights Reserved.
from collections import OrderedDict
import yaml
# Django
from django.core.exceptions import PermissionDenied
@@ -203,7 +202,7 @@ class Metadata(metadata.SimpleMetadata):
continue
if field == "pod_spec_override":
meta['default'] = yaml.dump(PodManager().pod_definition)
meta['default'] = PodManager().pod_definition
# Add type choices if available from the serializer.
if field == 'type' and hasattr(serializer, 'get_type_choices'):