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

ceph_orch_host: fix type for parameter 'labels' #138

Merged
merged 1 commit into from Jul 4, 2022
Merged

Conversation

guits
Copy link
Collaborator

@guits guits commented Jul 4, 2022

This parameter should support passing either a 'str' or a list of
'str'.

without that change, if you pass 'labels: ceph'

it will end up to the following situation:

Added label c to host rhceph5x-5node-1
Added label e to host rhceph5x-5node-1
Added label p to host rhceph5x-5node-1
Added label h to host rhceph5x-5node-1

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=2103673

Signed-off-by: Guillaume Abrioux gabrioux@redhat.com

@guits guits added backport-quincy backport quincy backport-pacific backport pacific labels Jul 4, 2022
This parameter should support passing either a 'str' or a list of
'str'.

without that change, if you pass 'labels: ceph'

it will end up to the following situation:

```
Added label c to host rhceph5x-5node-1
Added label e to host rhceph5x-5node-1
Added label p to host rhceph5x-5node-1
Added label h to host rhceph5x-5node-1
```

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=2103673

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
@guits guits merged commit 3d137b9 into devel Jul 4, 2022
8 checks passed
@guits guits deleted the support-str-and-list branch July 4, 2022 13:29
guits added a commit that referenced this pull request Jul 4, 2022
ceph_orch_host: fix type for parameter 'labels' (backport #138)
guits added a commit that referenced this pull request Jul 4, 2022
ceph_orch_host: fix type for parameter 'labels' (backport #138)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-pacific backport pacific backport-quincy backport quincy
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant