Removing MyPLC credentials requirements in update_fedora_repo.py
[nepi.git] / examples / planetlab / update_fedora_repo.py
index 63b6f1d..623a1e1 100644 (file)
@@ -84,8 +84,11 @@ for hostname in hosts:
     ec.set(node, "identity", pl_ssh_key)
     # The pluser and plpassword are the ones used to login in the PlanetLab web 
     # site. Replace with your own user and password account information.
-    ec.set(node, "pluser", pl_user)
-    ec.set(node, "plpassword", pl_password)
+    if pl_user:
+        ec.set(node, "pluser", pl_user)
+    if pl_password: 
+        ec.set(node, "plpassword", pl_password)
+
     ec.set(node, "critical", False)
     # Remove previous results
     ec.set(node, "cleanExperiment", True)