Commit 1a027aae authored by Sergios Aftsidis's avatar Sergios Aftsidis

Correct args

parent ec871ead
......@@ -133,9 +133,9 @@ def link(request, from_node, to_node, separate=False, fake=''):
datasources = [val for sublist in datasources for val in sublist]
if not separate:
if start and end:
url = create_graph_for_interfaces(datasources, start, end, dryrun) or False
url = create_graph_for_interfaces(datasources, start, end, dryrun=dryrun) or False
else:
url = create_graph_for_interfaces(datasources, dryrun) or False
url = create_graph_for_interfaces(datasources, dryrun=dryrun) or False
result = {'links': response, 'graph': url}
else:
if start and end:
......
......@@ -117,7 +117,13 @@ def graph_for_each_interface(datasources, start='-1d', end='-100'):
return response
def create_graph_for_interfaces(datasources, start=None, end=None, dryrun=False):
def create_graph_for_interfaces(datasources, start=None, end=None, **kwargs):
if 'dryrun' in kwargs:
dryrun = kwargs['dryrun']
else:
dryrun = False
if not start:
start = '-1d'
if not end:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment