]> git.apps.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
Fix warning in 'when' clause in 'Create the teuthology user.' 81/head
authorDan Mick <dan.mick@redhat.com>
Thu, 16 Jul 2015 03:12:59 +0000 (20:12 -0700)
committerDan Mick <dan.mick@redhat.com>
Thu, 16 Jul 2015 03:12:59 +0000 (20:12 -0700)
Warnings appeared each run:

[WARNING]: It is unnecessary to use '{{' in conditionals, leave variables in
loop expressions bare

Apparently 'when' clauses are already Jinja2 expressions, and so don't
need the normal variable quoting.

Signed-off-by: Dan Mick <dan.mick@redhat.com>
roles/testnode/tasks/user.yml

index e5b33d3dc218c40b08810a84bd205f5bf45fc875..1cdeee47bd0b39f1f186a549c94ee3fe0ca08b18 100644 (file)
@@ -21,7 +21,7 @@
     state: present
   # If we're currently running as teuthology_user, we won't be able to modify
   # the account
-  when: "{{ teuthology_user != ansible_ssh_user }}"
+  when: teuthology_user != ansible_ssh_user
 
 - name: Add a user for xfstests to test user quotas.
   user: