Skip to content

Commit

Permalink
prettier fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tedim52 committed May 2, 2024
1 parent a505be6 commit 5375d84
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,9 @@ export const SetImageModel = ({ isOpen, onClose, currentImage, serviceName, encl

// if we've already run an update image, just append another set service instruction, otherwise create a new set service script
let updateImageStarlarkScript;
console.log(`serialized script: ${starlarkRun.value.serializedScript}`)
console.log(starlarkRun.value.serializedScript.slice(0, 7).toLowerCase())
if(starlarkRun.value.serializedScript.slice(0, 7).toLowerCase() === "package") {
console.log(`serialized script: ${starlarkRun.value.serializedScript}`);
console.log(starlarkRun.value.serializedScript.slice(0, 7).toLowerCase());
if (starlarkRun.value.serializedScript.slice(0, 7).toLowerCase() === "package") {
const latestSetService = `\n\n plan.set_service(name="${serviceName}", config=ServiceConfig(image="${newImage}"))`;
updateImageStarlarkScript = starlarkRun.value.serializedScript + latestSetService;
} else {
Expand Down

0 comments on commit 5375d84

Please sign in to comment.