Skip to content

Commit

Permalink
Manage tokens better.
Browse files Browse the repository at this point in the history
  • Loading branch information
briehl committed May 30, 2018
1 parent 9ed3fd6 commit f47bb5b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/NarrativeService/NarrativeServiceImpl.py
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ def find_object_report(self, ctx, params):
# ctx is the context object
# return variables are: returnVal
#BEGIN find_object_report
report_fetcher = ReportFetcher(self.workspaceURL)
report_fetcher = ReportFetcher(Workspace(self.workspaceURL, token=ctx["token"]))
returnVal = report_fetcher.find_report_from_object(params['upa'])
#END find_object_report

Expand Down
4 changes: 2 additions & 2 deletions lib/NarrativeService/ReportFetcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
from NarrativeService.ServiceUtils import ServiceUtils

class ReportFetcher(object):
def __init__(self, ws_url):
self.ws_client = Workspace(url=ws_url)
def __init__(self, ws_client):
self.ws_client = ws_client

def find_report_from_object(self, upa):
#TODO:
Expand Down

0 comments on commit f47bb5b

Please sign in to comment.