diff options
author | Michael DeHaan <mdehaan@redhat.com> | 2008-10-20 16:18:35 -0400 |
---|---|---|
committer | Michael DeHaan <mdehaan@redhat.com> | 2008-10-20 16:18:35 -0400 |
commit | b4038ce8aec2690302349ecaf6e2ed71d0683ff3 (patch) | |
tree | 00ab05fccead59b74468791c13327f2d079b5110 /cobbler/action_report.py | |
parent | 88eaace10ed681bedd54d45ba0d66c417bed0f64 (diff) | |
download | cobbler-b4038ce8aec2690302349ecaf6e2ed71d0683ff3.tar.gz cobbler-b4038ce8aec2690302349ecaf6e2ed71d0683ff3.tar.xz cobbler-b4038ce8aec2690302349ecaf6e2ed71d0683ff3.zip |
Make reporting work on images again, make selects non-multiple
Diffstat (limited to 'cobbler/action_report.py')
-rw-r--r-- | cobbler/action_report.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/cobbler/action_report.py b/cobbler/action_report.py index 4f2e0d7a..2288433e 100644 --- a/cobbler/action_report.py +++ b/cobbler/action_report.py @@ -320,6 +320,12 @@ class Report: self.reporting_list_names2(self.api.repos(), report_name) else: self.reporting_print_sorted(self.api.repos()) + + if report_what in [ "all", "images", "image" ]: + if report_name is not None: + self.reporting_list_names2(self.api.images(), report_name) + else: + self.reporting_print_sorted(self.api.images()) elif report_type == 'text' and report_fields != 'all': raise CX(_("The 'text' type can only be used with field set to 'all'")) @@ -337,6 +343,9 @@ class Report: if report_what in [ "all", "repos", "repo" ]: self.reporting_print_all_fields(self.api.repos(), report_type, report_noheaders) + + if report_what in [ "all", "images", "image" ]: + self.reporting_print_all_fields(self.api.images(), report_type, report_noheaders) else: @@ -351,3 +360,6 @@ class Report: if report_what in [ "all", "repos", "repo" ]: self.reporting_print_x_fields(self.api.repos(), report_type, report_fields, report_noheaders) + if report_what in [ "all", "images", "image" ]: + self.reporting_print_x_fields(self.api.images(), report_type, report_fields, report_noheaders) + |