Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use environment variable with --config environment #59

Merged
merged 1 commit into from
Jun 20, 2022

Conversation

steven-deboer
Copy link
Contributor

@steven-deboer steven-deboer commented Jun 20, 2022

Description

This is a fix for #57.

It is now possible to use environment variables instead of a configuration file.

Motivation and Context

This is helpful if you want to run pc within a CI/CD pipeline.

How Has This Been Tested?

By setting the environment variables:

PC_SAAS_API_ENDPOINT
PC_COMPUTE_API_ENDPOINT
PC_ACCESS_KEY
PC_SECRET_KEY

And then run pc referring to a configuration called environment:

pc --config environment ...

Types of changes

  • New feature (non-breaking change which adds functionality)

Checklist

  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes if appropriate.
  • All new and existing tests passed.

@steven-deboer steven-deboer merged commit 3cb7e76 into PaloAltoNetworks:main Jun 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant