git: 78c1ba506b85 - releng/15.1 - nuageinit: only parse user_data as yaml when necessary
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 07 May 2026 20:19:13 UTC
The branch releng/15.1 has been updated by cperciva:
URL: https://cgit.FreeBSD.org/src/commit/?id=78c1ba506b858a1702720ea7e51b6a05a4691787
commit 78c1ba506b858a1702720ea7e51b6a05a4691787
Author: Baptiste Daroussin <bapt@FreeBSD.org>
AuthorDate: 2026-05-06 20:14:17 +0000
Commit: Colin Percival <cperciva@FreeBSD.org>
CommitDate: 2026-05-07 20:18:43 +0000
nuageinit: only parse user_data as yaml when necessary
This fixes a regression introduced in cae280931c9e which prevents
user_data as a shell script to be used
Approved by: re (cperciva)
PR: 295062
Reported by: Ross McKelvie <ross@exitzero.uk>
MFC After: 1 day
(cherry picked from commit c316ec259011e9e22e40eaa72d834f3bfac95c28)
(cherry picked from commit 4211f280ba087c75dcd84f9b592238b2eae33af9)
---
libexec/nuageinit/nuageinit | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libexec/nuageinit/nuageinit b/libexec/nuageinit/nuageinit
index f7700f7d8e70..a1ebd3f52b25 100755
--- a/libexec/nuageinit/nuageinit
+++ b/libexec/nuageinit/nuageinit
@@ -727,7 +727,7 @@ local function load_userdata()
f:close()
local obj = nil
- if ud then
+ if ud and line == "#cloud-config" then
f = io.open(ni_path .. "/" .. ud)
obj = yaml.load(f:read("*a"))
f:close()