git: c316ec259011 - main - nuageinit: only parse user_data as yaml when necessary
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 06 May 2026 20:20:54 UTC
The branch main has been updated by bapt:
URL: https://cgit.FreeBSD.org/src/commit/?id=c316ec259011e9e22e40eaa72d834f3bfac95c28
commit c316ec259011e9e22e40eaa72d834f3bfac95c28
Author: Baptiste Daroussin <bapt@FreeBSD.org>
AuthorDate: 2026-05-06 20:14:17 +0000
Commit: Baptiste Daroussin <bapt@FreeBSD.org>
CommitDate: 2026-05-06 20:20:45 +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
PR: 295062
Reported by: Ross McKelvie <ross@exitzero.uk>
MFC After: 1 day
---
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()