Skip to content

Commit 796c50e

Browse files
committed
Fix wrong record generation
Fixes #66
1 parent 723d8fd commit 796c50e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

caso/extract/nova.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,8 @@ def extract_for_project(self, project, extract_from, extract_to):
277277
# If we are republishing, the machine reports status
278278
# completed, but it is not True for this period, so we need
279279
# to fake the status
280-
if records[server.id].status == "completed":
281-
records[server.id].status = self.vm_status("active")
280+
if record.status == "completed":
281+
record.status = self.vm_status("active")
282282

283283
cput = wall * usage["vcpus"]
284284
record.cpu_duration = cput

0 commit comments

Comments
 (0)