backend/satellite_tools/disk_dumper/iss.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
New commits:
commit 9b0ba911bb84ad384f1b822a02e3589562848661
Author: Tomas Lestach <tlestach(a)redhat.com>
Date: Thu Dec 10 11:55:21 2009 +0100
541078 - Satellite 5.3.0 - rhn-satellite-exporter --start-date and --end-date issues
differentiating one common error message that is misleading for some cases
diff --git a/backend/satellite_tools/disk_dumper/iss.py
b/backend/satellite_tools/disk_dumper/iss.py
index d464780..509362b 100644
--- a/backend/satellite_tools/disk_dumper/iss.py
+++ b/backend/satellite_tools/disk_dumper/iss.py
@@ -196,7 +196,10 @@ class Dumper(dumper.XML_Dumper):
ch_info = ch_data.fetchall_dict()
if not ch_info:
- raise ISSError("Error: Channel %s not found." % ids,
"")
+ if self.start_date:
+ raise ISSError("Error: No %s channel information found
within specified time frame." % ids, "")
+ else:
+ raise ISSError("Error: Channel %s not found." % ids,
"")
self.channel_ids = self.channel_ids + ch_info
except ISSError:
Show replies by date