mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-19 04:21:17 +00:00
Framework/Workload: Change condition for pushing assets
Changes from checking if there are deployable assets to checking for discovered assets. This allows for automated pushing of assets without invoking the resource getters, for example pre discovered files.
This commit is contained in:
parent
30da77a1cf
commit
74347b9e67
@ -91,7 +91,7 @@ class Workload(TargetedPlugin):
|
||||
workload instance, i.e., unlike ``setup()`` it will not be invoked on
|
||||
each iteration.
|
||||
"""
|
||||
if self.deployable_assets:
|
||||
if self.asset_files:
|
||||
self.deploy_assets(context)
|
||||
|
||||
def setup(self, context):
|
||||
@ -145,8 +145,8 @@ class Workload(TargetedPlugin):
|
||||
else:
|
||||
self.target.execute('mkdir -p {}'.format(self.asset_directory))
|
||||
|
||||
for i, asset in enumerate(self.deployable_assets):
|
||||
self.target.push(self.asset_files[i], self.asset_directory)
|
||||
for asset in self.asset_files:
|
||||
self.target.push(asset, self.asset_directory)
|
||||
self.deployed_assets.append(self.target.path.join(self.asset_directory,
|
||||
asset))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user