git://git.onelab.eu
/
nepi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
still making both branches closer
[nepi.git]
/
examples
/
planetlab
/
update_fedora_repo.py
diff --git
a/examples/planetlab/update_fedora_repo.py
b/examples/planetlab/update_fedora_repo.py
index
67c82a3
..
71ec4d8
100644
(file)
--- a/
examples/planetlab/update_fedora_repo.py
+++ b/
examples/planetlab/update_fedora_repo.py
@@
-27,6
+27,8
@@
# $ cd <path-to-nepi>
# python examples/planetlab/update_fedora_repo.py -H <host1,host2,..> -s <pl-slice> -u <pl-user> -p <pl-password> -k <pl-ssh-key>
# $ cd <path-to-nepi>
# python examples/planetlab/update_fedora_repo.py -H <host1,host2,..> -s <pl-slice> -u <pl-user> -p <pl-password> -k <pl-ssh-key>
+from __future__ import print_function
+
from nepi.execution.ec import ExperimentController
from optparse import OptionParser, SUPPRESS_HELP
from nepi.execution.ec import ExperimentController
from optparse import OptionParser, SUPPRESS_HELP
@@
-65,7
+67,7
@@
pl_user = options.pl_user
pl_password = options.pl_password
hosts = options.hosts
pl_password = options.pl_password
hosts = options.hosts
-hosts =
map(str.strip, hosts.split(","))
+hosts =
[host.strip() for host in hosts.split(",")]
apps = []
## Create the experiment controller
apps = []
## Create the experiment controller
@@
-132,9
+134,9
@@
ec.wait_finished(apps)
for app in apps:
try:
for app in apps:
try:
- print
ec.trace(app, "stderr"
)
+ print
(ec.trace(app, "stderr")
)
except:
except:
- print
"NO stderr"
+ print
("NO stderr")
ec.shutdown()
ec.shutdown()