Skip to content
This repository has been archived by the owner on Jul 4, 2018. It is now read-only.

Tweaks required to run #2

Open
keithj opened this issue Apr 10, 2017 · 0 comments
Open

Tweaks required to run #2

keithj opened this issue Apr 10, 2017 · 0 comments

Comments

@keithj
Copy link

keithj commented Apr 10, 2017

Using python-irodsclient built from irods/python-irodsclient@f48f0fe

I required the following changes to get ingest.py to run:

Removed hard-coded password and replaced with password drawn from environment file:

from irods.password_obfuscation import decode

...

 with open(env['irods_authentication_file'], 'r') as authfile:
        pw = decode(authfile.read().rstrip('\n'))

The value of IRODS_ENVIRONMENT_FILE is ignored and a hard coded environment file path is used (meaning that I ran this on our production system by accident).

I also uncommented the raise statement which was trapping all exceptions in order to get a stracktrace.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant