From 769d5beb909934b1cec61299f02f11106f199e49 Mon Sep 17 00:00:00 2001 From: Graham Gilbert Date: Thu, 6 Nov 2014 10:35:09 -0800 Subject: [PATCH] Potential fix for issue #30 --- scripts/Makefile | 2 +- scripts/postflight | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/Makefile b/scripts/Makefile index 2b176e3..7f97836 100644 --- a/scripts/Makefile +++ b/scripts/Makefile @@ -1,6 +1,6 @@ USE_PKGBUILD=1 include /usr/local/share/luggage/luggage.make -PACKAGE_VERSION=0.2.0 +PACKAGE_VERSION=0.2.1 TITLE=sal_scripts PACKAGE_NAME=sal_scripts REVERSE_DOMAIN=com.grahamgilbert diff --git a/scripts/postflight b/scripts/postflight index 02e5c0d..2e6610f 100755 --- a/scripts/postflight +++ b/scripts/postflight @@ -106,7 +106,8 @@ system_profile = FoundationPlist.readPlistFromString(stdout) try: f = open('/var/lib/puppet/state/last_run_summary.yaml', 'r') puppetreport = yaml.load(f.read()) - report['Puppet'] = puppetreport + report['Puppet']['time']['last_run'] = puppetreport['time']['last_run'] + report['Puppet']['events']['failure'] = puppetreport['events']['failure'] except: pass