]> git-server-git.apps.pok.os.sepia.ceph.com Git - cephmetrics.git/commitdiff
ansible-lint: Don't compare to empty string
authorZack Cerza <zack@redhat.com>
Tue, 4 Jun 2019 23:06:22 +0000 (17:06 -0600)
committerZack Cerza <zack@redhat.com>
Tue, 4 Jun 2019 23:34:12 +0000 (17:34 -0600)
Signed-off-by: Zack Cerza <zack@redhat.com>
ansible/roles/ceph-mgr/tasks/main.yml

index 81135ec1b54571b911e096ba6f671d244f4cb760..d0c0f04155997d9ab3005efbeefdea2057aaced7 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
 
 - name: Enable mgr prometheus module
   command: "{{ mgr_prefix|default('') }} ceph --cluster {{ cluster_name }} mgr module enable prometheus"