forgot 'keyfile' argument to print
[myplc.git] / db-config.d / 01-init
index 71453a0..1880c39 100644 (file)
@@ -59,7 +59,7 @@ AddRoleToPerson(10, admin['person_id'])
 AddRoleToPerson(20, admin['person_id'])
 
 # Associate root ssh key with the default administrator
-keyfile="/etc/planetlab/root_ssh_key.pub"
+keyfile=plc['root_ssh_key_pub']
 person = GetPersons(admin['person_id'])[0]
 keys = GetKeys(person['key_ids'])
 if os.path.exists(keyfile):
@@ -80,4 +80,4 @@ if os.path.exists(keyfile):
 else:
     if len(keys)==0:
         print "WARNING: default administrator does not have an ssh key"
-        print "and the default ssh root pub key (%s) file does not exist."
+        print "and the default ssh root pub key (%s) file does not exist." % keyfile