Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-7583

Replace `to_yaml_properties` with `encode_with`

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • PUP 5.0.0
    • None
    • Hide

      Puppet does not rely on `to_yaml_properties` to filter fields of objects from serialization

      Show
      Puppet does not rely on `to_yaml_properties` to filter fields of objects from serialization
    • Agent
    • 1
    • Agent 2017-06-14
    • Not Needed
    • This is a release-unnoteworthy internal concern.
    • No Action

    Description

      We use to_yaml_properties to filter attributes from objects when serializing to yaml (at least in report and simple_graph). This method is deprecated in ruby and the current way to do this is to define encode_with.

      Replace use of `to_yaml_properties` with `encode_with` in puppet.

      Attachments

        Activity

          People

            Unassigned Unassigned
            moses Moses Mendoza
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support