Skip to content
This repository has been archived by the owner on Feb 1, 2021. It is now read-only.

Commit

Permalink
Do not use deep munge
Browse files Browse the repository at this point in the history
This is breaking the JSON parsing for empty arrays, which we use with
the magic crowbar-deep-merge-template feature when creating the initial
crowbar proposal.

With deep munge enabled, we cannot remove the nagios proposal, which
results in failures when nagios barclamp is not available.

See:
rails/rails#8832
rails/rails#13420

We can revert this once switching to rails 5 (see comments in second
issue).
  • Loading branch information
vuntz committed Jan 8, 2015
1 parent a7dc5e1 commit 762e128
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions crowbar_framework/config/initializers/action_dispatch.rb
@@ -0,0 +1,17 @@
#
# Copyright 2015, SUSE LINUX Products GmbH
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

ActionDispatch::Request::Utils.perform_deep_munge = false

0 comments on commit 762e128

Please sign in to comment.