fix(remnawave): убрать ${#arr} из bootstrap-шаблона
ansible-core-net / deploy (push) Failing after 11s
ansible-core-net / deploy (push) Failing after 11s
Иначе lookup(template) ломается на Jinja-комментарии. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
8f17cbbb62
commit
39d1f66663
1 file changed
+1
-1
@@ -18,7 +18,7 @@ api() {
|
|||||||
local path="$1"; shift
|
local path="$1"; shift
|
||||||
local tmp code
|
local tmp code
|
||||||
tmp=$(mktemp)
|
tmp=$(mktemp)
|
||||||
if [ "${#AUTH_HDR[@]}" -gt 0 ]; then
|
if [ -n "${AUTH_HDR[*]:-}" ]; then
|
||||||
code=$("${CURL[@]}" -o "$tmp" -w '%{http_code}' -X "$method" "${AUTH_HDR[@]}" \
|
code=$("${CURL[@]}" -o "$tmp" -w '%{http_code}' -X "$method" "${AUTH_HDR[@]}" \
|
||||||
-H "Content-Type: application/json" "${API_BASE}${path}" "$@") || true
|
-H "Content-Type: application/json" "${API_BASE}${path}" "$@") || true
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in new issue
Block a user