From dca57f51bcbf9befc5d4e467d0f71d7e001b5816 Mon Sep 17 00:00:00 2001 From: Jose Luis Franco Arza Date: Thu, 7 Feb 2019 16:27:44 +0100 Subject: [PATCH] Remove the use of tests as filters as it will be deprecated. As of Ansible 2.5, using an Ansible provided jinja test with filter syntax, will display a deprecation error, they should be switched into using 'is' [0]. [0] - https://docs.ansible.com/ansible/latest/porting_guides/porting_guide_2.5.html#id17 Change-Id: I46912d6cff8b8332bbe875166636523f02a8088b --- deployment/swift/swift-proxy-container-puppet.yaml | 2 +- deployment/swift/swift-storage-container-puppet.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/deployment/swift/swift-proxy-container-puppet.yaml b/deployment/swift/swift-proxy-container-puppet.yaml index 7cd8402eea..8d94e2c647 100644 --- a/deployment/swift/swift-proxy-container-puppet.yaml +++ b/deployment/swift/swift-proxy-container-puppet.yaml @@ -484,7 +484,7 @@ outputs: - name: Restart rsyslogd service after logging conf change service: name=rsyslog state=restarted when: - - logconfig|changed + - logconfig is changed when: rsyslog_config.rc == 0 upgrade_tasks: - when: step|int == 3 diff --git a/deployment/swift/swift-storage-container-puppet.yaml b/deployment/swift/swift-storage-container-puppet.yaml index 4eeafefdff..0f6c8ad7e6 100644 --- a/deployment/swift/swift-storage-container-puppet.yaml +++ b/deployment/swift/swift-storage-container-puppet.yaml @@ -619,7 +619,7 @@ outputs: - name: Restart rsyslogd service after logging conf change service: name=rsyslog state=restarted when: - - logconfig|changed + - logconfig is changed when: rsyslog_config.rc == 0 - name: Set fact for SwiftRawDisks set_fact: