Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ansibleguy committed May 17, 2024
1 parent b19aae8 commit 6f0f954
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion filter_plugins/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def safe_key(key: str) -> str:

@staticmethod
def config_line_end(line: str) -> str:
return '' if line.endswith(';') else ';'
return '' if line.endswith(';') or line.endswith('}') else ';'

@staticmethod
def ensure_list(data: (str, list)) -> list:
Expand Down
2 changes: 1 addition & 1 deletion tasks/debian/add_site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
ansible.builtin.assert:
that:
- site.domain is defined
- ng_site_ssl_key.stat.exists
- site.plain_only or ng_site_ssl_key.stat.exists
- not site.basic_auth.enable | bool or site.basic_auth.provider in NGINX_HC.options.basic_auth
tags: always

Expand Down

0 comments on commit 6f0f954

Please sign in to comment.