changes in main

This commit is contained in:
Akshaya M
2020-03-19 11:38:04 +05:30
parent 13aa761aaa
commit 7e72509c6b
2 changed files with 2 additions and 2 deletions

View File

@@ -40,7 +40,7 @@ function main() {
let servicePrincipalKey = secrets.getSecret("$.clientSecret", true);
let tenantId = secrets.getSecret("$.tenantId", false);
let subscriptionId = secrets.getSecret("$.subscriptionId", false);
const enablePSSession = !!core.getInput('enable-PSSession');
const enablePSSession = core.getInput('enable-PSSession').toLowerCase() === "true";
if (!servicePrincipalId || !servicePrincipalKey || !tenantId || !subscriptionId) {
throw new Error("Not all values are present in the creds object. Ensure clientId, clientSecret, tenantId and subscriptionId are supplied.");
}

View File

@@ -26,7 +26,7 @@ async function main() {
let servicePrincipalKey = secrets.getSecret("$.clientSecret", true);
let tenantId = secrets.getSecret("$.tenantId", false);
let subscriptionId = secrets.getSecret("$.subscriptionId", false);
const enablePSSession = !!core.getInput('enable-PSSession');
const enablePSSession = core.getInput('enable-PSSession').toLowerCase() === "true";
if (!servicePrincipalId || !servicePrincipalKey || !tenantId || !subscriptionId) {
throw new Error("Not all values are present in the creds object. Ensure clientId, clientSecret, tenantId and subscriptionId are supplied.");
}