mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
nixosTests: fix writeText warning when userData is null
makeEc2Test's userData parameter is required but image-contents.nix passes null, triggering a deprecation warning from writeText. Make userData optional (defaulting to null) and create an empty user-data file when it's not provided.
This commit is contained in:
parent
7e454277c3
commit
cfaddae84d
2 changed files with 5 additions and 3 deletions
|
|
@ -51,7 +51,6 @@ in
|
|||
makeEc2Test {
|
||||
name = "image-contents";
|
||||
inherit image;
|
||||
userData = null;
|
||||
script = ''
|
||||
machine.start()
|
||||
# Test that if contents includes a file, it is copied to the target.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue