Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Commit

Permalink
Fix swift bare variable warning
Browse files Browse the repository at this point in the history
[DEPRECATION WARNING]: evaluating 'swift_raw_disks' as a bare variable,
this behaviour will go away and you might need to add |bool to the
expression in the future. Also see CONDITIONAL_BARE_VARS configuration
toggle. This feature will be removed in version 2.12. Deprecation
warnings can be disabled by setting deprecation_warnings=False in
ansible.cfg.

Change-Id: I1d99dccc3ad8c6550581e69d48c7e7b365d53c7a
  • Loading branch information
mwhahaha committed Jan 21, 2021
1 parent c51bf22 commit 48dc38f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions deployment/swift/swift-storage-container-puppet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -621,14 +621,14 @@ outputs:
dev: "{{ swift_raw_disks[item]['base_dir']|default('/dev') }}/{{ item }}"
opts: -f -i size=1024
with_items: "{{ swift_raw_disks }}"
when: swift_raw_disks
when: swift_raw_disks|length > 0
- name: Refresh facts if SwiftRawDisks is set to get uuids if newly created partitions
setup:
gather_subset:
- '!all'
- '!min'
- 'hardware'
when: swift_raw_disks
when: swift_raw_disks|length > 0
- name: Mount devices defined in SwiftRawDisks
mount:
name: /srv/node/{{ item }}
Expand All @@ -637,7 +637,7 @@ outputs:
opts: noatime
state: mounted
with_items: "{{ swift_raw_disks }}"
when: swift_raw_disks
when: swift_raw_disks|length > 0
deploy_steps_tasks:
- name: Configure rsyslog for swift-storage
when:
Expand Down

0 comments on commit 48dc38f

Please sign in to comment.