From 8660b3b442d463fe7aaa29883017b1e4c043df3f Mon Sep 17 00:00:00 2001 From: Balaga Gayatri Date: Fri, 22 Oct 2021 12:32:51 +0530 Subject: [PATCH] nit changes --- lib/main.js | 2 +- src/PowerShell/ServicePrincipalLogin.ts | 10 +++++----- src/main.ts | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/main.js b/lib/main.js index 60f93750..e7e5f04c 100644 --- a/lib/main.js +++ b/lib/main.js @@ -84,7 +84,7 @@ function main() { if (servicePrincipalId || tenantId || subscriptionId) { //If few of the individual credentials (clent_id, tenat_id, subscription_id) are missing in action inputs. if (!(servicePrincipalId && tenantId && (subscriptionId || allowNoSubscriptionsLogin))) - throw new Error("Few credentials are missing.ClientId,tenantId are mandatory. SubscriptionId is also mandatory if allow-no-subscriptions is not set."); + throw new Error("Few credentials are missing. ClientId,tenantId are mandatory. SubscriptionId is also mandatory if allow-no-subscriptions is not set."); } else { if (creds) { diff --git a/src/PowerShell/ServicePrincipalLogin.ts b/src/PowerShell/ServicePrincipalLogin.ts index 646e9cdb..ae3b77ae 100644 --- a/src/PowerShell/ServicePrincipalLogin.ts +++ b/src/PowerShell/ServicePrincipalLogin.ts @@ -15,17 +15,17 @@ export class ServicePrincipalLogin implements IAzurePowerShellSession { subscriptionId: string; resourceManagerEndpointUrl: string; allowNoSubscriptionsLogin: boolean; - federatedToken:string; + federatedToken: string; - constructor(servicePrincipalId: string, - servicePrincipalKey: string, + constructor(servicePrincipalId: string, + servicePrincipalKey: string, federatedToken: string, - tenantId: string, + tenantId: string, subscriptionId: string, allowNoSubscriptionsLogin: boolean, environment: string, resourceManagerEndpointUrl: string) { - + this.servicePrincipalId = servicePrincipalId; this.servicePrincipalKey = servicePrincipalKey; this.federatedToken = federatedToken; diff --git a/src/main.ts b/src/main.ts index 97c88f56..3c48116c 100644 --- a/src/main.ts +++ b/src/main.ts @@ -59,7 +59,7 @@ async function main() { //If few of the individual credentials (clent_id, tenat_id, subscription_id) are missing in action inputs. if (!(servicePrincipalId && tenantId && (subscriptionId || allowNoSubscriptionsLogin))) - throw new Error("Few credentials are missing.ClientId,tenantId are mandatory. SubscriptionId is also mandatory if allow-no-subscriptions is not set."); + throw new Error("Few credentials are missing. ClientId,tenantId are mandatory. SubscriptionId is also mandatory if allow-no-subscriptions is not set."); } else { if (creds) {