From: Thierry Parmentelat Date: Wed, 14 Oct 2015 15:16:50 +0000 (+0200) Subject: this change was done in py2 and makes sense in py3 as well X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;ds=sidebyside;h=ee6a33278ae5fa8114618408b9d2cb14bc0c1585;p=nepi.git this change was done in py2 and makes sense in py3 as well --- diff --git a/examples/omf/testing/nepi_omf5_nitos_ccnring.py b/examples/omf/testing/nepi_omf5_nitos_ccnring.py index 680b2a70..d38ba6bf 100644 --- a/examples/omf/testing/nepi_omf5_nitos_ccnring.py +++ b/examples/omf/testing/nepi_omf5_nitos_ccnring.py @@ -255,17 +255,17 @@ if __name__ == '__main__': # Cleaning when the experiment stop ccndstops = [] - for i in range(len(all_hosts)): - ccndstop = add_app(ec, nodes[all_hosts[i]], "#ccndstop", "ccndstop", env, xmpp_slice, xmpp_host) + for host all_hosts: + ccndstop = add_app(ec, nodes[host], "#ccndstop", "ccndstop", env, xmpp_slice, xmpp_host) ccndstops.append(ccndstop) killall = add_app(ec, nodes[host6], "#kill", "killall sh", "", xmpp_slice, xmpp_host) # Condition to stop and clean the experiment apps = [] - for i in range(len(all_hosts)): - apps.append(ccnds[all_hosts[i]]) - apps.append(ccnrs[all_hosts[i]]) + for host in all_hosts: + apps.append(ccnds[host]) + apps.append(ccnrs[host]) apps += link apps.append(pub) apps.append(stream)