diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2022-09-16 16:19:09 +0200 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2022-09-16 16:19:09 +0200 |
commit | 12764a020a4171eee738b1e2a8a3d5340f4da7a1 (patch) | |
tree | f84833d8e1967db93e78e3dda7f1675178929ad1 /scenarios/garage-warp | |
parent | b95db09b96d6a901004fdf3ccccc98e297c9102d (diff) | |
download | mknet-12764a020a4171eee738b1e2a8a3d5340f4da7a1.tar.gz mknet-12764a020a4171eee738b1e2a8a3d5340f4da7a1.zip |
Fix prepare script
Diffstat (limited to 'scenarios/garage-warp')
-rwxr-xr-x | scenarios/garage-warp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/scenarios/garage-warp b/scenarios/garage-warp index 3d80c79..5d338c0 100755 --- a/scenarios/garage-warp +++ b/scenarios/garage-warp @@ -1,16 +1,16 @@ #!/usr/bin/env python3 -from fragments import garage, warp, shared +from fragments import garage, warp, shared, flavor import sys -for flavor in sys.argv[1:]: - if flavor in garage.version_flavor: - garage.version = garage.version_flavor[flavor] - if flavor in warp.bench_flavor: - warp.bench = warp.bench_flavor[flavor] +for fl in sys.argv[1:]: + if fl in flavor.garage: + garage.version = flavor.garage[fl] + if fl in flavor.warp: + warp.bench = flavor.warp[fl] if shared.id() == 1: garage.deploy_coord(version=garage.version) - warp.on_garage(params=warp_bench) + warp.on_garage(params=warp.bench) garage.delete_key() garage.destroy() else: |