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

Commit

Permalink
Merge "Fix swift bare variable warning"
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and openstack-gerrit committed Jan 23, 2021
2 parents 5e74ce5 + 48dc38f commit 5a49041
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 5a49041

Please sign in to comment.