Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cibadmin meta attributes to list #211

Merged
merged 2 commits into from
Apr 5, 2023
Merged

Conversation

arbulu89
Copy link
Contributor

@arbulu89 arbulu89 commented Apr 5, 2023

The meta_attributes entry can be there more than once (even though it looks like an exception, as entries finishing with s are unique).
This started happening in 15SP4 using ha-cluster-init tool to create the cluster.
So now the meta_attributes will be converted to a list always to avoid divergencies.

Example output:

[
  #{
    "id": "build-resource-defaults",
    "nvpair": [
      #{
        "id": "build-resource-stickiness",
        "name": "resource-stickiness",
        "value": 1
      }
    ]
  },
  #{
    "id": "rsc-options",
    "nvpair": [
      #{
        "id": "rsc-options-migration-threshold",
        "name": "migration-threshold",
        "value": 5000
      },
      #{
        "id": "rsc-options-resource-stickiness",
        "name": "resource-stickiness",
        "value": 1000
      }
    ]
  }
] 

@arbulu89 arbulu89 added the bug Something isn't working label Apr 5, 2023
@arbulu89
Copy link
Contributor Author

arbulu89 commented Apr 5, 2023

Tested by @angelabriel

@arbulu89 arbulu89 merged commit 6bcdfa6 into main Apr 5, 2023
@arbulu89 arbulu89 deleted the cibadmin-meta-attributes-to-list branch April 5, 2023 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

Successfully merging this pull request may close these issues.

None yet

2 participants