Add timestamp to ssh key title, forgejo doesn't like duplicates
parent
ae2d267e4c
commit
30fccad54d
|
@ -27,6 +27,7 @@ import time
|
|||
import requests
|
||||
import tempfile
|
||||
import hashlib
|
||||
import datetime
|
||||
|
||||
#FORGEJO_VERSION="8.0.3"
|
||||
FORGEJO_VERSION="9.0.0"
|
||||
|
@ -463,7 +464,9 @@ class OpengnsysGitInstaller:
|
|||
self.__logger.info("Updated initrd %s", client_initrd_path)
|
||||
|
||||
|
||||
self.add_forgejo_sshkey(oglive_public_key, "Key for " + ogclient)
|
||||
timestamp = '{:%Y-%m-%d %H:%M:%S}'.format(datetime.datetime.now())
|
||||
|
||||
self.add_forgejo_sshkey(oglive_public_key, f"Key for {ogclient} ({timestamp})")
|
||||
|
||||
def install(self):
|
||||
"""Instalar
|
||||
|
|
Loading…
Reference in New Issue