Skip to content

[devscripts] use boolean conditionals for dict vars in 132_extend_lvm.yaml#3796

Closed
fultonj wants to merge 1 commit intoopenstack-k8s-operators:mainfrom
fultonj:ansible_lvm_conditional
Closed

[devscripts] use boolean conditionals for dict vars in 132_extend_lvm.yaml#3796
fultonj wants to merge 1 commit intoopenstack-k8s-operators:mainfrom
fultonj:ansible_lvm_conditional

Conversation

@fultonj
Copy link
Contributor

@fultonj fultonj commented Mar 24, 2026

ansible_lvm and root_mount_data are dicts, not booleans. Newer Ansible requires conditionals to resolve to explicit boolean values. Replace bare dict checks with | length > 0 to satisfy this requirement.

….yml

ansible_lvm and root_mount_data are dicts, not booleans. Newer Ansible
requires conditionals to resolve to explicit boolean values. Replace
bare dict checks with `| length > 0` to satisfy this requirement.

Signed-off-by: John Fulton <fulton@redhat.com>
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Mar 24, 2026

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign rebtoor for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@fultonj fultonj closed this Mar 24, 2026
@fultonj fultonj deleted the ansible_lvm_conditional branch March 24, 2026 22:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant