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

Fix errors in uploader, add support for .config and path for config file. #18

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

april
Copy link

@april april commented Mar 13, 2020

Cleans up a bunch of code, also adds checks for two different (currently unchecked) error conditions.

Note that this will require a change to the Makefile in auth0-deploy, as -c has been changed to -i. This is reflected here: mozilla-iam/auth0-deploy#317

Copy link
Contributor

@gene1wood gene1wood left a comment

Choose a reason for hiding this comment

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

One question, and would you add to this PR the update to the docs that capture this change in usage and in credential file location?

parser.add_argument('-u', '--uri', default=credentials.uri, help='URI to Auth0 management API')
parser.add_argument('-c', '--clientid', default=credentials.client_id, required=require_creds, help='Auth0 client id')
parser.add_argument('-s', '--clientsecret', default=credentials.client_secret, required=require_creds, help='Auth0 client secret')
parser.add_argument('-i', '--clientid', default=credentials.client_id, help='Auth0 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.

Will changing this break the CloudBuild CI execution of this tool?

Copy link
Author

Choose a reason for hiding this comment

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

Sure, I can update the docs. It will break the CloudBuild CI, which is why this PR should be merged concurrently with the PR in the comment above.

Copy link
Contributor

Choose a reason for hiding this comment

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

Aha, sorry didn't see that comment.

Copy link
Contributor

Choose a reason for hiding this comment

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

Would you add the new config option and the credentials file location change to the docs as well?

Copy link
Contributor

@gene1wood gene1wood left a comment

Choose a reason for hiding this comment

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

Once the documentation has been updated in this PR to capture this new functionality this should be good to merge

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.

2 participants