Skip to content

Commit bb86911

Browse files
committed
Bug 1402260 remove nesting limitation from json to yaml parsing
1 parent d7af2d9 commit bb86911

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

Diff for: app/scripts/controllers/edit/yaml.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,7 @@ angular.module('openshiftConsole')
107107
kind: resource.kind
108108
}, resource);
109109

110-
// flowLevel: 10 - Maximum level of depth before generating inline
111-
_.set($scope, 'editor.model', jsyaml.safeDump(resource, {flowLevel: 10}));
110+
_.set($scope, 'editor.model', jsyaml.safeDump(resource));
112111

113112
$scope.save = function() {
114113
$scope.modified = false;

Diff for: dist/scripts/scripts.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -7471,9 +7471,7 @@ return _.get(a, "metadata.resourceVersion");
74717471
h = angular.extend({
74727472
apiVersion:h.apiVersion,
74737473
kind:h.kind
7474-
}, h), _.set(a, "editor.model", jsyaml.safeDump(h, {
7475-
flowLevel:10
7476-
})), a.save = function() {
7474+
}, h), _.set(a, "editor.model", jsyaml.safeDump(h)), a.save = function() {
74777475
a.modified = !1;
74787476
var c;
74797477
try {

0 commit comments

Comments
 (0)