From 2b591f62e01acc8aba915fe202f0746fdfa30fa5 Mon Sep 17 00:00:00 2001 From: Michael Elkins Date: Sat, 19 Feb 2011 15:48:21 +0000 Subject: do not print warning about missing responses when the -v argument is omitted svn path=/rpkid/rpki/gui/scripts/list_resources.py; revision=3684 --- rpkid/rpki/gui/scripts/list_resources.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'rpkid/rpki/gui/scripts/list_resources.py') diff --git a/rpkid/rpki/gui/scripts/list_resources.py b/rpkid/rpki/gui/scripts/list_resources.py index 77380505..2b547e45 100644 --- a/rpkid/rpki/gui/scripts/list_resources.py +++ b/rpkid/rpki/gui/scripts/list_resources.py @@ -1,6 +1,6 @@ # $Id$ # -# Copyright (C) 2010 SPARTA, Inc. dba Cobham Analytic Solutions +# Copyright (C) 2010, 2011 SPARTA, Inc. dba Cobham Analytic Solutions # # Permission to use, copy, modify, and distribute this software for any # purpose with or without fee is hereby granted, provided that the above @@ -209,7 +209,8 @@ for pdu in pdus: # verify that we got responses for all expected handles for h in handles: if h not in seen: - print >>sys.stderr, 'error: did not receive response for handle %s' % (h,) + if verbose: + print 'warning: did not receive response for handle %s' % (h,) sys.exit(3) sys.exit(0) # success -- cgit v1.2.3