nixosTests.ec2-config: avoid an evaluation problem
The problem was introduced by commit 97a32bc
(within PR #79696).
nixos/tests/common/ec2.nix:6:17 called with unexpected argument 'meta'
This commit is contained in:
parent
748871ad42
commit
30e98a4fd6
@ -3,7 +3,7 @@
|
|||||||
with pkgs.lib;
|
with pkgs.lib;
|
||||||
|
|
||||||
{
|
{
|
||||||
makeEc2Test = { name, image, userData, script, hostname ? "ec2-instance", sshPublicKey ? null }:
|
makeEc2Test = { name, image, userData, script, hostname ? "ec2-instance", sshPublicKey ? null, meta ? {} }:
|
||||||
let
|
let
|
||||||
metaData = pkgs.stdenv.mkDerivation {
|
metaData = pkgs.stdenv.mkDerivation {
|
||||||
name = "metadata";
|
name = "metadata";
|
||||||
@ -59,5 +59,7 @@ with pkgs.lib;
|
|||||||
|
|
||||||
machine = create_machine({"startCommand": start_command})
|
machine = create_machine({"startCommand": start_command})
|
||||||
'' + script;
|
'' + script;
|
||||||
|
|
||||||
|
inherit meta;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user