file.close() isn't required because "
with open(file.name) as f:" is used before Change-Id: I1168d039e17133f553dd36b424fdeb40fc1631ba
This commit is contained in:
parent
f86d4e0b3a
commit
a41e228a1a
|
@ -285,7 +285,6 @@ class Backup(object):
|
|||
with open(file.name) as f:
|
||||
content = f.readlines()
|
||||
LOG.info("Content download {0}".format(content))
|
||||
file.close()
|
||||
return json.loads(content[0])
|
||||
|
||||
def metadata(self):
|
||||
|
|
Loading…
Reference in New Issue