Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.

Commit d5f9cbd

Browse files
Merge pull request #44 from SananGuliyev/patch-1
Refactor `user_name/password` condition
2 parents 444cf6f + 7f94239 commit d5f9cbd

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

templates/users.j2

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,7 @@
6262
<{{ user.name }}>
6363
{% if user.password is defined and user.password_sha256_hex is not defined %}
6464
<password>{{ user.password }}</password>
65-
{% elif user.password is not defined and user.password_sha256_hex is defined %}
66-
<password_sha256_hex>{{ user.password_sha256_hex }}</password_sha256_hex>
67-
{% elif user.password is defined and user.password_sha256_hex is defined %}
65+
{% elif user.password_sha256_hex is defined %}
6866
<password_sha256_hex>{{ user.password_sha256_hex }}</password_sha256_hex>
6967
{% endif %}
7068
<networks incl="networks" replace="replace">

0 commit comments

Comments
 (0)