-
Notifications
You must be signed in to change notification settings - Fork 3
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
Dev sync ago #5
base: master
Are you sure you want to change the base?
Dev sync ago #5
Conversation
sync-ago.py
Outdated
username='maps.phl.data', | ||
password=MAPS_PASSWORD, | ||
ago_creds = citygeo_secrets.connect_with_secrets(connect_maps_ago, "maps.phl.data") | ||
org = GIS(url=ago_creds.get('url'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be refactored into a connection function that is passed to citygeo_secrets in the connect_with_secrets method in order to leverage the packages' functionality of trying again with secrets from the keeper api if the first connection attempt fails using secrets from the mapped drive.
sync.py
Outdated
sf = Salesforce(username=SF_USER, \ | ||
password=SF_PASSWORD, \ | ||
security_token=SF_TOKEN) | ||
sf = Salesforce(username=salesforce_creds.get('login'), \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above; this should leverage citygeo-secrets by using refactoring the Salesforce connection into a function that is passed to the connect_with_secrets method.
Get credentials from keeper using citygeo_secrets