From mboxrd@z Thu Jan 1 00:00:00 1970 From: rmccabe@sourceware.org Date: 4 Aug 2006 18:37:58 -0000 Subject: [Cluster-devel] conga/luci/utils luci_admin Message-ID: <20060804183758.13431.qmail@sourceware.org> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit CVSROOT: /cvs/cluster Module name: conga Changes by: rmccabe at sourceware.org 2006-08-04 18:37:57 Modified files: luci/utils : luci_admin Log message: do nothing when backup is requested if luci has not been initialized Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/conga/luci/utils/luci_admin.diff?cvsroot=cluster&r1=1.42&r2=1.43 --- conga/luci/utils/luci_admin 2006/08/03 23:39:00 1.42 +++ conga/luci/utils/luci_admin 2006/08/04 18:37:57 1.43 @@ -1029,11 +1029,10 @@ def backup(argv): + # If the site hasn't been initialized, there's nothing to + # save, and luci_backup() will fail if not luci_initialized(): - sys.stderr.write('The Luci server has not yet been initialized\n') - sys.stderr.write('To initialize it, execute\n') - sys.stderr.write('\t' + argv[0] + ' init\n') - sys.exit(1) + sys.exit(0) print 'Backing up the Luci server...'