Skip to content

Failures using marshal_dump with v1.3.0 #79

Closed
@agrare

Description

@agrare

We started hitting failures related to RecursiveOpenStruct#marshal_dump that appear to be introduced by #72
The return value is different causing callers that assume the same API contract, specifically something like ros.marshal_dump.each { |key, val| ... } now fails because it is iterating over an array of the ostruct and the options.

Example code that fails: https://github.com/fog/fog-kubevirt/blob/master/lib/fog/kubevirt/compute/compute.rb#L94-L97
Related Issue: fog/fog-kubevirt#161

Since this changes the return format IMO this was a breaking change and should have been a major version release.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions