From d6e84a4574a200de63e8fe86ef8574b507fd366e Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Tue, 25 Apr 2023 08:48:47 +0000 Subject: nixosTest: remove hostname limitations --- nixos/doc/manual/development/writing-nixos-tests.section.md | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'nixos/doc/manual/development') diff --git a/nixos/doc/manual/development/writing-nixos-tests.section.md b/nixos/doc/manual/development/writing-nixos-tests.section.md index 3de46fda3df67..486a4b64a262f 100644 --- a/nixos/doc/manual/development/writing-nixos-tests.section.md +++ b/nixos/doc/manual/development/writing-nixos-tests.section.md @@ -130,6 +130,11 @@ starting them in parallel: start_all() ``` +If the hostname of a node contains characters that can't be used in a +Python variable name, those characters will be replaced with +underscores in the variable name, so `nodes.machine-a` will be exposed +to Python as `machine_a`. + ## Machine objects {#ssec-machine-objects} The following methods are available on machine objects: -- cgit 1.4.1