From bc4882af81fb25d0d347554d34dae849dbbffda9 Mon Sep 17 00:00:00 2001 From: "Chris St. Pierre" Date: Thu, 14 Jun 2012 11:45:20 -0400 Subject: bcfg2-reports: exit if file cannot be read --- src/sbin/bcfg2-reports | 1 + 1 file changed, 1 insertion(+) (limited to 'src/sbin/bcfg2-reports') diff --git a/src/sbin/bcfg2-reports b/src/sbin/bcfg2-reports index e2e48ef79..cf3699c15 100755 --- a/src/sbin/bcfg2-reports +++ b/src/sbin/bcfg2-reports @@ -237,6 +237,7 @@ def main(): except IOError, err: print("Cannot read entries from %s: %s" % (options.file, err)) + return 2 elif args: entries = [a.split(":") for a in args] else: -- cgit v1.2.3-1-g7c22