]> git-server-git.apps.pok.os.sepia.ceph.com Git - cephmetrics.git/commitdiff
Revert comparison "fix" from ansible-lint 246/head
authorZack Cerza <zack@redhat.com>
Wed, 11 Sep 2019 15:54:36 +0000 (09:54 -0600)
committerZack Cerza <zack@redhat.com>
Wed, 11 Sep 2019 15:57:29 +0000 (09:57 -0600)
In d737083, we thought we were fixing something, but it turns out the
comparison suggested will throw an error if container_name contains a
dash (which it likely will). Revert the change and instruct
ansible-lint to not complain about that error on that line.

Resolves: rhbz#1731919

Signed-off-by: Zack Cerza <zack@redhat.com>
ansible/roles/ceph-mgr/tasks/main.yml

index d0c0f04155997d9ab3005efbeefdea2057aaced7..80a709c5109abc4c8ac45ef75bbb4f29d60b2264 100644 (file)
@@ -26,7 +26,7 @@
 - name: Prefix the mgr command with a docker command
   set_fact:
     mgr_prefix: "docker exec {{ container_name }}"
-  when: container_name
+  when: container_name != ""  # noqa 602
 
 - name: Enable mgr prometheus module
   command: "{{ mgr_prefix|default('') }} ceph --cluster {{ cluster_name }} mgr module enable prometheus"