config_factory: check key is in directory before trying to delete it

11 jobs for !21 with improve-gitlab-ci in 6 minutes and 42 seconds (queued for 4 seconds)
detached
Status Job ID Name Coverage
  Build
passed #635
buster-slim

00:00:50

passed #633
jessie-slim

00:00:44

passed #634
stretch-slim

00:00:43

 
  Check
passed #636
compile

00:00:55

passed #637
lint

00:01:12

 
  Unit Test
failed #640
buster-ut

00:00:48

failed #638
jessie-ut

00:00:46

failed #639
stretch-ut

00:00:40

 
  Lets Encrypt Staging
skipped #643
buster-le-staging
skipped #641
jessie-le-staging
skipped #642
stretch-le-staging
 
Name Stage Failure
failed
jessie-ut Unit Test
KeyError: 'acmednstiny'

----------------------------------------------------------------------
Ran 1 test in 0.359s

FAILED (errors=1)
Running after_script
Uploading artifacts for failed job
ERROR: Job failed: exit code 1
failed
stretch-ut Unit Test
KeyError: 'acmednstiny'

----------------------------------------------------------------------
Ran 1 test in 0.351s

FAILED (errors=1)
Running after_script
Uploading artifacts for failed job
ERROR: Job failed: exit code 1
failed
buster-ut Unit Test
KeyError: 'acmednstiny'

----------------------------------------------------------------------
Ran 1 test in 0.127s

FAILED (errors=1)
Running after_script
Uploading artifacts for failed job
ERROR: Job failed: exit code 1