Skip to content

Commit

Permalink
Merge pull request #36 from ceph/wip-ed25519-pubkey
Browse files Browse the repository at this point in the history
consider ed25519 pubkey
  • Loading branch information
kshtsk authored Aug 1, 2024
2 parents ab20066 + 98fdc6f commit 9e0da3d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
10 changes: 5 additions & 5 deletions downburst/meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
log = logging.getLogger(__name__)

def get_ssh_pubkey():
path = os.path.expanduser('~/.ssh/id_rsa.pub')
if not os.path.exists(path):
for p in ('~/.ssh/id_rsa.pub', '~/.ssh/id_ed25519.pub'):
path = os.path.expanduser(p)
if os.path.exists(path):
with open(path, 'rt') as f:
return f.readline().rstrip('\n')
log.warn("Public key not found, skipping it: " + path)
return
with open(path, 'rt') as f:
return f.readline().rstrip('\n')


KEYURL='https://git.ceph.com/?p=keys.git;a=blob_plain;f=ssh/teuthology-ubuntu.pub;hb=HEAD'
Expand Down
2 changes: 1 addition & 1 deletion downburst/template.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<memory>524288</memory>
<vcpu>1</vcpu>
<os>
<type arch='x86_64' machine='pc-1.0'>hvm</type>
<type arch='x86_64'>hvm</type>
<boot dev='hd'/>
</os>
<features>
Expand Down
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
],

install_requires=install_requires,
Expand Down

0 comments on commit 9e0da3d

Please sign in to comment.