aboutsummaryrefslogtreecommitdiffstats
path: root/SiteSummary.pm
diff options
context:
space:
mode:
Diffstat (limited to 'SiteSummary.pm')
-rw-r--r--SiteSummary.pm9
1 files changed, 9 insertions, 0 deletions
diff --git a/SiteSummary.pm b/SiteSummary.pm
index fec7b09..b6b449a 100644
--- a/SiteSummary.pm
+++ b/SiteSummary.pm
@@ -10,6 +10,7 @@ our @ISA = qw(Exporter);
our @EXPORT = qw(
for_all_hosts
get_filepath_current
+ get_hostclass
get_site
get_sitegroup
get_hostname
@@ -66,6 +67,14 @@ sub get_sitegroup {
}
#
+# Return the hostclass string
+#
+sub get_hostclass {
+ my $hostid = shift;
+ return get_file_string($hostid, "/siteinfo/hostclass");
+}
+
+#
# Return the hostname string
#
sub get_hostname {