From 4aab76f1695ad50a01ffcaa5e99b3a9af48f5697 Mon Sep 17 00:00:00 2001 From: tpmccallum Date: Tue, 7 May 2024 19:04:42 +1000 Subject: [PATCH] Fix variables in manifest Signed-off-by: tpmccallum --- content/cloud/variables.md | 4 ++-- content/spin/v2/variables.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/content/cloud/variables.md b/content/cloud/variables.md index a71944ab4..fad370af0 100644 --- a/content/cloud/variables.md +++ b/content/cloud/variables.md @@ -123,7 +123,7 @@ command = "componentize-py -w spin-http componentize app -o app.wasm" watch = ["*.py", "requirements.txt"] [component.pw-checker.variables] -password = "{{ secret }}" +password = "\{{ secret }}" ``` The resulting application manifest should look similar to the following: @@ -155,7 +155,7 @@ command = "cargo build --target wasm32-wasi --release" watch = ["src/**/*.rs", "Cargo.toml"] [component.pw-checker.variables] -password = "{{ secret }}" +password = "\{{ secret }}" ``` ## Using Variables in a Spin Application diff --git a/content/spin/v2/variables.md b/content/spin/v2/variables.md index c7e1ac88b..520d5ce8f 100644 --- a/content/spin/v2/variables.md +++ b/content/spin/v2/variables.md @@ -35,7 +35,7 @@ Variables are surfaced to a specific component by adding a `[component.(name).va ```toml [component.cart.variables] -password = "{{ secret }}" +password = "\{{ secret }}" api_host = "https://my-api.com" ``` @@ -63,7 +63,7 @@ component = "password-checker" [component.password-checker] source = "app.wasm" [component.password-checker.variables] -password = "{{ secret }}" +password = "\{{ secret }}" api_host = "https://my-api.com" ```