fixup! fixup! cluster/services/storage: test in simulacrum

This commit is contained in:
Max Headroom 2024-08-16 23:25:56 +02:00
parent 9575813019
commit 5b71f8529e

View file

@ -179,7 +179,7 @@ in
key = {
destroyAfterDays = 0;
create = key: ''
if [[ "$(garage key info ${lib.escapeShellArg key}) 2>&1 >/dev/null)" == "Error: 0 matching keys" ]]; then
if [[ "$(garage key info ${lib.escapeShellArg key} 2>&1 >/dev/null)" == "Error: 0 matching keys" ]]; then
# don't print secret key
garage key new --name ${lib.escapeShellArg key} >/dev/null
echo Key ${lib.escapeShellArg key} was created.