From 8767db9a7a3933755992dd7b138decc6d6f877b4 Mon Sep 17 00:00:00 2001 From: Ashcon Partovi Date: Wed, 13 Nov 2024 18:04:15 -0800 Subject: [PATCH] Changes [build image] --- scripts/agent.mjs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/scripts/agent.mjs b/scripts/agent.mjs index ac23f5be845f25..bf163de4c578eb 100755 --- a/scripts/agent.mjs +++ b/scripts/agent.mjs @@ -178,9 +178,12 @@ export async function doAgent(action) { }; if (cloud) { - const robobun = await getCloudMetadataTag("robobun"); - if (robobun === "true") { - tags["robobun"] = "true"; + const requiredTags = ["robobun", "robobun2"]; + for (const tag of requiredTags) { + const value = await getCloudMetadataTag(tag); + if (typeof value === "string") { + tags[tag] = value; + } } }