~psivaa/uci-engine/find-missing-mps

« back to all changes in this revision

Viewing changes to charms/precise/webui/hooks/hooks.py

Merge use-uci-images into arch-param

Show diffs side-by-side

added added

removed removed

Lines of Context:
69
69
            data = json.load(f)
70
70
            yield data
71
71
 
 
72
            # clear the file before writing back data as it appears the new
 
73
            # dump doesn't set the end-of-file correctly.
 
74
            f.truncate(0)
72
75
            f.seek(0)
73
76
            json.dump(data, f)
74
77
        finally: