commit a2b8d6c75914db5a39ff9a5bec45951f176d3b36 Author: Jonathan Rosser Date: Fri Oct 2 07:32:51 2020 +0100 Fix linter errors Change-Id: Ie1760e1fb18891d59f355fce6154d183c5c621e6 diff --git a/doc/source/conf.py b/doc/source/conf.py index 3535ed5..b750b24 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -231,7 +231,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/configure_metal_hosts.yml b/tasks/configure_metal_hosts.yml index ce4bfca..18dca8c 100644 --- a/tasks/configure_metal_hosts.yml +++ b/tasks/configure_metal_hosts.yml @@ -62,7 +62,7 @@ name: "{{ item.name }}" with_items: "{{ openstack_host_kernel_modules + openstack_host_specific_kernel_modules }}" when: - - item.name != '' + - item.name | length > 0 - item.pattern is undefined or (item.pattern is defined and (modules.content | b64decode).find(item.pattern + '=m') != -1) - name: Write list of modules to load at boot diff --git a/tests/test.yml b/tests/test.yml index ab2b4d6..58711e3 100644 --- a/tests/test.yml +++ b/tests/test.yml @@ -109,7 +109,7 @@ - name: Check for ssh dir stat: - path: "{{ ansible_env.HOME}}/.ssh" + path: "{{ ansible_env.HOME }}/.ssh" register: ssh_dir - name: Check for extra host package present on host @@ -143,6 +143,6 @@ - "systat_file.stat.exists" - "'PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' in environment_content" - "ssh_dir.stat.isdir" - - extra_distro_package_host.changed == false - - extra_metal_distro_package_host.changed == false + - extra_distro_package_host is not changed + - extra_metal_distro_package_host is not changed