From 4a06c1373884c27aa6724e33ca62b2fe5de87573 Mon Sep 17 00:00:00 2001 From: Sergei Trofimov Date: Mon, 18 Jun 2018 15:13:04 +0100 Subject: [PATCH] commands/revent: add get_resource to LightContext Since 2ff06af63, resources are obtained via context.get_resource, rather than context.resolve.get_resource. LightContext used by the record command was not updated to implement that method. This fixes the issue --- wa/commands/revent.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wa/commands/revent.py b/wa/commands/revent.py index 1da367fd..ea14b40f 100644 --- a/wa/commands/revent.py +++ b/wa/commands/revent.py @@ -285,7 +285,11 @@ class ReplayCommand(Command): # Used to satisfy the workload API class LightContext(object): + def __init__(self, tm): self.tm = tm self.resolver = ResourceResolver() self.resolver.load() + + def get_resource(self, resource, strict=True): + return self.resolver.get_resource(resource, strict)