diff options
| author | Baptiste Daroussin <bapt@FreeBSD.org> | 2026-05-06 20:14:17 +0000 |
|---|---|---|
| committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2026-05-06 20:20:45 +0000 |
| commit | c316ec259011e9e22e40eaa72d834f3bfac95c28 (patch) | |
| tree | fd89c82737e35b1082600c330fabbd7224b5da68 | |
| parent | 84a95741805d84f0074a34d61b93ccf86f422cf3 (diff) | |
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
| -rwxr-xr-x | libexec/nuageinit/nuageinit | 2 |
1 files changed, 1 insertions, 1 deletions
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() |
