Skip to content

Commit

Permalink
Modify constructor and instance method calls in "download" method (#44)
Browse files Browse the repository at this point in the history
* Modify constructor and instance method calls in "download" method

* Remove version requirement

Signed-off-by: David Brown <dmlb2000@gmail.com>
  • Loading branch information
markborkum authored and dmlb2000 committed Mar 7, 2019
1 parent b078253 commit 06ebf78
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ install:
C:\pacifica\Scripts\activate.ps1;
python -m pip install pip setuptools wheel --upgrade;
pip install -r requirements-dev.txt;
pip install celery[redis] 'redis<3.0';
pip install celery[redis] 'redis';
echo "Done";
build: off
Expand Down
7 changes: 3 additions & 4 deletions pacifica/cli/methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,16 +162,15 @@ def download(args, _interface_data):
global_ini = generate_global_config()
auth = generate_requests_auth(global_ini)
dl_obj = Downloader(
args.destination,
global_ini.get('endpoints', 'download_url'),
cart_api_url=global_ini.get('endpoints', 'download_url'),
auth=auth
)
if args.trans_id:
resp = requests.get('{}/{}'.format(global_ini.get('endpoints',
'download_policy_url'), args.trans_id), **auth)
assert resp.status_code == 200
return dl_obj.transactioninfo(resp.json())
return dl_obj.cloudevent(loads(args.cloudevent.read()))
return dl_obj.transactioninfo(args.destination, resp.json())
return dl_obj.cloudevent(args.destination, loads(args.cloudevent.read()))


def upload(args, interface_data):
Expand Down

0 comments on commit 06ebf78

Please sign in to comment.