Skip to content

Commit

Permalink
Fix [E602] Don't compare to empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
89luca89 committed Oct 12, 2020
1 parent 26364a8 commit 4258762
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/terrible/tasks/setup_vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
- name: Set HCL Deploy path
set_fact:
hcl_deploy_path: "{{ lookup('env','HOME') }}/.terrible/{{ ansible_inventory_sources[0].split('/')[-1] }}/localhost"
when: provider_uri.split('/')[-2] == ""
when: provider_uri.split('/')[-2] | length == 0
delegate_to: terraform_node

# Create the directory tree for the temprorary files.
Expand Down

0 comments on commit 4258762

Please sign in to comment.