Skip to content

Commit

Permalink
Expand load resources
Browse files Browse the repository at this point in the history
  • Loading branch information
VoicuAWS committed Oct 26, 2023
1 parent a8a5c3a commit 7380f6f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cid/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,11 +280,13 @@ def track(self, action, dashboard_id):
except Exception as e:
logger.debug(f"Issue logging action {action} for dashboard {dashboard_id} , due to a urllib3 exception {str(e)} . This issue will be ignored")

def get_resources(self, resources):
return get_parameters().get(resources)

def load_resources(self):
''' load additional resources from command line parameters
'''
if get_parameters().get('resources'):
if self.get_resources('resources'):
source = get_parameters().get('resources')
logger.info(f'Loading resources from {source}')
resources = {}
Expand Down

0 comments on commit 7380f6f

Please sign in to comment.