mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-02-21 20:38:57 +00:00
framework/workload: fix asset_files and deployed_assets
These two lists are updated by workloads as assets are discovered and deployed. As these are defined as class attributes in the base Workload class, the same two list instances are shared between all classes. This results in subsequent workloads re-deploying assets from the previous workloads, and may lead to mismatches with deployable_assets, which is overwritten on per-workload basis. Make these into instance attriutes to prevent these issues.
This commit is contained in:
parent
652f107d10
commit
73a530917a
@ -66,8 +66,11 @@ class Workload(TargetedPlugin):
|
||||
|
||||
# Used to store information about workload assets.
|
||||
deployable_assets = []
|
||||
asset_files = []
|
||||
deployed_assets = []
|
||||
|
||||
def __init__(self, target, **kwargs):
|
||||
super(Workload, self).__init__(target, **kwargs)
|
||||
self.asset_files = []
|
||||
self.deployed_assets = []
|
||||
|
||||
def init_resources(self, context):
|
||||
"""
|
||||
|
Loading…
x
Reference in New Issue
Block a user