From 84198fc9f4ef33acf3a29ea559a9bed0f6c6a3bb Mon Sep 17 00:00:00 2001
From: Jorge Padilla <jorge.esteban.padilla@gmail.com>
Date: Thu, 7 Sep 2023 16:08:10 -0500
Subject: [PATCH] fix(frontend): fix resource type in automate command (#3134)

---
 web/src/services/CliCommand.service.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/web/src/services/CliCommand.service.ts b/web/src/services/CliCommand.service.ts
index c4e229bcc4..ffb13678f2 100644
--- a/web/src/services/CliCommand.service.ts
+++ b/web/src/services/CliCommand.service.ts
@@ -63,7 +63,7 @@ const CliCommandService = () => ({
     let command = Object.entries(options).reduce(
       (acc, [option, enabled]) =>
         this.applyOptions[option as CliCommandOption]({command: acc, enabled, id, variableSetId, fileName}),
-      `run ${resourceType}`
+      `run ${resourceType.slice(0, -1)}`
     );
 
     command = this.applyRequiredGates(command, requiredGates);