Comment 6 for bug 1951705

Revision history for this message
Steve Langasek (vorlon) wrote :

If I modify the postinst with set -x, I'm able to see that the traceback is from this:

+ /usr/bin/python3 -c
import os
import json
from uaclient.config import UAConfig
cfg = UAConfig()
status = cfg.read_cache('status-cache')
if status:
    for service in status['services']:
       if service['name'] == 'esm-apps':
           print(service['status'])

Traceback (most recent call last):
  File "<string>", line 10, in <module>
KeyError: 'status'