Liste récursive des interactions

This commit is contained in:
2021-09-02 13:47:47 +02:00
parent 9887189b38
commit 879a042487
2 changed files with 9 additions and 7 deletions

View File

@ -36,10 +36,10 @@ final = Expectation("""1 -> Ne rien faire
Entrez le numéro de votre choix :""", response='2', name='final')
expectations.add_expectation(already_registered)
expectations.add_expectation(network_configuration)
expectations.add_expectation(new_server)
expectations.add_expectation(zephir_address)
expectations.add_expectation(hardware)
expectations.add_expectation(key_available)
expectations.add_expectation(final)
@ -48,6 +48,7 @@ network_configuration.set_next_expectation(interface_name, triggers=['O', 'Oui',
interface_name.set_next_expectation(network_address)
network_address.set_next_expectation(network_netmask)
network_netmask.set_next_expectation(gateway)
network_configuration.set_next_expectation(zephir_address, triggers=['N', 'Non', 'NON'])
new_server.set_next_expectation(rne, triggers=['N', 'Non', 'NON'])
rne.set_next_expectation(server_id, triggers='')