cloudfoundry/cloud_controller_ng

View on GitHub
app/presenters/mixins/services_presentation_helpers.rb

Summary

Maintainability
A
25 mins
Test Coverage
module VCAP::CloudController::Presenters::Mixins
  module ServicesPresentationHelpers
    private

    def parse_maintenance_info(maintenance_info)
      return {} unless maintenance_info
      return maintenance_info if maintenance_info.is_a?(Hash)

      Oj.load(maintenance_info)
    rescue StandardError
      {}
    end
  end
end