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 /SiteSummary.pm | |
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.
Diffstat (limited to 'SiteSummary.pm')
-rw-r--r-- | SiteSummary.pm | 4 |
1 files changed, 2 insertions, 2 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)) { |