mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-18 12:06:08 +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:
parent
9e9c84958d
commit
4a06c13738
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user