Skip to content

Commit 4258762

Browse files
committed
Fix [E602] Don't compare to empty string
1 parent 26364a8 commit 4258762

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roles/terrible/tasks/setup_vars.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
- name: Set HCL Deploy path
8585
set_fact:
8686
hcl_deploy_path: "{{ lookup('env','HOME') }}/.terrible/{{ ansible_inventory_sources[0].split('/')[-1] }}/localhost"
87-
when: provider_uri.split('/')[-2] == ""
87+
when: provider_uri.split('/')[-2] | length == 0
8888
delegate_to: terraform_node
8989

9090
# Create the directory tree for the temprorary files.

0 commit comments

Comments
 (0)