diff options
author | Petter Reinholdtsen <pere@hungry.com> | 2008-08-09 17:19:31 +0000 |
---|---|---|
committer | Petter Reinholdtsen <pere@hungry.com> | 2008-08-09 17:19:31 +0000 |
commit | 5ca369b332f128a4c391f91b4e4889aa63e45592 (patch) | |
tree | e9476831937b86b3cf1a6e96b474f5f58a821fb2 | |
parent | 18a4802b53f2e9d0a44e117c052bf9c4aafbb940 (diff) | |
download | sitesummary-5ca369b332f128a4c391f91b4e4889aa63e45592.tar.gz sitesummary-5ca369b332f128a4c391f91b4e4889aa63e45592.tar.bz2 sitesummary-5ca369b332f128a4c391f91b4e4889aa63e45592.tar.xz |
Rename get_macaddress() to get_macaddresses(), to make it easier to guess that it return an array.
-rw-r--r-- | SiteSummary.pm | 4 | ||||
-rw-r--r-- | debian/changelog | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/SiteSummary.pm b/SiteSummary.pm index 054f78d..f86bb3d 100644 --- a/SiteSummary.pm +++ b/SiteSummary.pm @@ -15,7 +15,7 @@ our @EXPORT = qw( get_sitegroup get_hostname get_dns_address - get_macaddress + get_macaddresses get_primary_macaddress get_primary_ip_address get_linux_kernel_ver @@ -104,7 +104,7 @@ sub get_primary_ip_address { # # Return all MAC addresses -sub get_macaddress { +sub get_macaddresses { my $hostid = shift; my $path = get_filepath_current($hostid, "/system/ifconfig-a"); if (open (FILE, $path)) { diff --git a/debian/changelog b/debian/changelog index 5164bee..e3d24da 100644 --- a/debian/changelog +++ b/debian/changelog @@ -3,8 +3,9 @@ sitesummary (0.0.47) UNRELEASED; urgency=low * Fix bug in collector hook handling. Now it uses the correct 'update' argument when calling hook scripts on updates. * Make sure to export the get_primary_ip_address function in the - SiteSummary perl module. - * Add perl function to return all ethernet MAC addresses. + SiteSummary perl module. + * Add perl function get_macaddress() to return all ethernet + MAC addresses. * Add Swedish translation from Martin Ă…gren (Closes: #492067). -- Petter Reinholdtsen <pere@debian.org> Mon, 28 Jul 2008 18:23:41 +0200 |