Skip to content

Commit aa64b9f

Browse files
mvo5bcl
authored andcommitted
test: rename CI_PRIV_SSH_KEY_2 -> CI_PRIV_SSH_KEY
We used to have a CI_PRIV_SSH_KEY_2 but now that we need to generate another CI ssh key we decided to rename it back to CI_PRIV_SSH_KEY as its really the only key we have there.
1 parent c00ecdc commit aa64b9f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/scripts/boot-image

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def get_azure_config():
4343
def create_ssh_key(privkey_file = None, key_type = None):
4444
with TemporaryDirectory() as tmpdir:
4545
keypath = os.path.join(tmpdir, "testkey")
46-
ci_priv_key = os.environ.get("CI_PRIV_SSH_KEY_2")
46+
ci_priv_key = os.environ.get("CI_PRIV_SSH_KEY")
4747
if privkey_file is not None:
4848
shutil.copyfile(privkey_file, keypath)
4949
os.chmod(keypath, 0o600)
@@ -216,7 +216,7 @@ def boot_qemu_iso(arch, installer_iso_path, config_file):
216216
# in CI we can actually do a real image test. Sadly not locally
217217
# because we have no way to log into the installed disk in this
218218
# case, the CI ssh key is secret.
219-
if os.environ.get("CI_PRIV_SSH_KEY_2"):
219+
if os.environ.get("CI_PRIV_SSH_KEY"):
220220
with create_ssh_key() as (privkey_path, _):
221221
exit_status, _ = qemu_cmd_scp_and_run(vm, cmd, privkey_path)
222222
assert exit_status == 0

0 commit comments

Comments
 (0)