From ac2fbfb52ac31b91df1fa4e51f4382d1358a679e Mon Sep 17 00:00:00 2001 From: Jonathan Rosser Date: Thu, 1 Oct 2020 16:52:08 +0100 Subject: [PATCH] Fix linter errors Change-Id: I140b92dc6ccee3023d2a8965af768bd1c6488c5d --- doc/source/conf.py | 2 +- tasks/consoles/nova_console_novnc_ssl.yml | 3 ++- tasks/drivers/kvm/nova_disable_smt.yml | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index 45c68b9a..060e403a 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/consoles/nova_console_novnc_ssl.yml b/tasks/consoles/nova_console_novnc_ssl.yml index 1a5fdb6e..a25a0652 100644 --- a/tasks/consoles/nova_console_novnc_ssl.yml +++ b/tasks/consoles/nova_console_novnc_ssl.yml @@ -22,11 +22,12 @@ mode: "0755" - name: Prepare combined nova-console SSL and CA certs - local_action: command cat {{ nova_console_user_ssl_cert }} {{ nova_console_user_ssl_ca_cert is defined | ternary(nova_console_user_ssl_ca_cert,'') }} + command: cat {{ nova_console_user_ssl_cert }} {{ nova_console_user_ssl_ca_cert is defined | ternary(nova_console_user_ssl_ca_cert,'') }} changed_when: false register: nova_console_user_ssl_combined tags: - nova-config + delegate_to: localhost - name: Drop user provided ssl cert and key copy: diff --git a/tasks/drivers/kvm/nova_disable_smt.yml b/tasks/drivers/kvm/nova_disable_smt.yml index fc65de3f..bc7ad605 100644 --- a/tasks/drivers/kvm/nova_disable_smt.yml +++ b/tasks/drivers/kvm/nova_disable_smt.yml @@ -37,4 +37,4 @@ service: name: smt enabled: yes - when: "{{ smt_disable_service | changed }}" + when: smt_disable_service | changed