Uploaded image for project: 'VCL'
  1. VCL
  2. VCL-183

DataStructure.pm contains duplicate subroutines: get_computer_private_ip and get_computer_private_ip_address

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.0
    • 2.1
    • vcld (backend)
    • None

    Description

      DataStructure.pm contains 2 subs which perform the same function: get_computer_private_ip() and get_computer_private_ip_address().
      get_computer_private_ip() calls another sub in utils.pm called get_ip_address_from_hosts().
      get_computer_private_ip_address() is self-contained and newer.

      DataStructure::get_computer_private_ip() should be removed as well as utils.pm::get_ip_address_from_hosts(). This is the only place where get_ip_address_from_hosts() is called. Code calling get_computer_private_ip() should be changed to get_computer_private_ip_address().

      Attachments

        Activity

          People

            arkurth Andrew Kurth
            arkurth Andrew Kurth
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: