Skip to content
This repository has been archived by the owner on Dec 6, 2023. It is now read-only.

[#153676720] script provisioners #40

Merged
merged 2 commits into from
Jan 12, 2018
Merged

Conversation

cloudify
Copy link
Contributor

No description provided.

@cloudify cloudify requested a review from gunzip January 12, 2018 14:42
@cloudify cloudify force-pushed the 153676720-script-provisioners branch from e54970c to c137f2d Compare January 12, 2018 15:07
[
"ARM_SUBSCRIPTION_ID",
"ARM_CLIENT_ID",
"ARM_CLIENT_SECRET",
"ARM_TENANT_ID"
]
.filter(e => process.env[e] == undefined || process.env[e] == "")
].filter(e => process.env[e] === undefined || process.env[e] === "");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and process.env[e] === null

return reject(`Missing required env vars: ${missingEnvs.join(", ")}`);
}

const clientId = process.env.ARM_CLIENT_ID;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd rather put these at module level not inside the function body (sincerly I prefer the old implementation that leave the check for environment variables outside the scope of login() function)

@cloudify cloudify merged commit 237478d into master Jan 12, 2018
@cloudify cloudify deleted the 153676720-script-provisioners branch January 12, 2018 15:17
cloudify added a commit that referenced this pull request Feb 28, 2019
* [#153676720] refactors cosmosdb collection provisioner to extract env check

* [#153676720] Adds website git provisioner
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants