commit b71665074defb73afd33bf487cc4072c3ed2be9c Author: Jonathan Rosser Date: Thu Oct 1 16:56:45 2020 +0100 Fix linter errors Depends-On: https://review.opendev.org/755585 Change-Id: I497f6c2c963a59eb5ff4101bd74b16fa9eecc4c0 diff --git a/doc/source/conf.py b/doc/source/conf.py index ebf400e..812029f 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -230,7 +230,7 @@ latex_elements = { # author, documentclass [howto, manual, or own class]). latex_documents = [ (master_doc, 'doc-' + target_name + '.tex', - title.replace("_", "\_"), author, 'manual'), + title.replace("_", r"\_"), author, 'manual'), ] latex_use_xindy = False diff --git a/tasks/swift_rings_build.yml b/tasks/swift_rings_build.yml index b626364..94a1b79 100644 --- a/tasks/swift_rings_build.yml +++ b/tasks/swift_rings_build.yml @@ -31,7 +31,7 @@ group: "{{ swift_system_group_name }}" with_items: - { item: "{{ swift.account | default({}) }}", port: "{{ swift_account_port }}", type: "account" } - - { item: "{{ swift.container | default({}) }}", port: "{{ swift_container_port}}", type: "container" } + - { item: "{{ swift.container | default({}) }}", port: "{{ swift_container_port }}", type: "container" } - name: "Build ring-contents files for storage policies" template: @@ -53,7 +53,7 @@ when: swift_install_method == 'distro' - name: "Build rings for account/container from contents files" - command: "/etc/swift/scripts/swift_rings.py -f /etc/swift/scripts/{{ item[0] }}.contents{% if item[1] %} -r {{ item[1] }}{% endif %}{{ (swift_pretend_min_part_hours_passed | bool) | ternary(' -p', '')}}" + command: "/etc/swift/scripts/swift_rings.py -f /etc/swift/scripts/{{ item[0] }}.contents{% if item[1] %} -r {{ item[1] }}{% endif %}{{ (swift_pretend_min_part_hours_passed | bool) | ternary(' -p', '') }}" with_nested: - [ 'account', 'container' ] - "{{ swift_managed_regions | default([None]) }}" @@ -66,7 +66,7 @@ chdir: /etc/swift/ring_build_files/ - name: "Build rings for storage policies from contents files" - command: "/etc/swift/scripts/swift_rings.py -f /etc/swift/scripts/object-{{ item[0].policy.index }}.contents{% if item[1] %} -r {{ item[1] }}{% endif %}{{ (swift_pretend_min_part_hours_passed | bool) | ternary(' -p', '')}}" + command: "/etc/swift/scripts/swift_rings.py -f /etc/swift/scripts/object-{{ item[0].policy.index }}.contents{% if item[1] %} -r {{ item[1] }}{% endif %}{{ (swift_pretend_min_part_hours_passed | bool) | ternary(' -p', '') }}" with_nested: - "{{ swift.storage_policies }}" - "{{ swift_managed_regions | default([None]) }}"