Commit 43e80f88 authored by juga  's avatar juga
Browse files

Remove arg and condition to rm the link

since the option to remove the bw file link has been removed.
parent a9a109e6
......@@ -884,13 +884,10 @@ class V3BWFile(object):
ys = [[getattr(l, k) for l in self.bw_lines] for k in attrs]
return x, ys, attrs
def write(self, output, rm_link=False):
def write(self, output):
if output == '/dev/stdout':
log.info("Writing to stdout is not supported.")
return
if not self.is_min_perc and rm_link:
self.rm_link(output)
return
log.info('Writing v3bw file to %s', output)
# To avoid inconsistent reads, the bandwidth data is written to an
# archive path, then atomically symlinked to 'latest.v3bw'
......
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