1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-01-18 20:11:20 +00:00

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
This commit is contained in:
Sergei Trofimov 2018-06-18 15:13:04 +01:00 committed by setrofim
parent 9e9c84958d
commit 4a06c13738

View File

@ -285,7 +285,11 @@ class ReplayCommand(Command):
# Used to satisfy the workload API # Used to satisfy the workload API
class LightContext(object): class LightContext(object):
def __init__(self, tm): def __init__(self, tm):
self.tm = tm self.tm = tm
self.resolver = ResourceResolver() self.resolver = ResourceResolver()
self.resolver.load() self.resolver.load()
def get_resource(self, resource, strict=True):
return self.resolver.get_resource(resource, strict)