Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Description
    • Returns the name of the current image that is loaded on the resource(currentimage.txt file).
    • The name corresponds to the image.name column in the database.
    • Returning a name implies that the resource is accessible.
    • The OS.pm will probably handle this subroutine.
  • Expected Beginning State
    • Resource is accessible.
  • Expected Ending State
    • The resource state should be identical to before get_current_image_name was called.
  • Called By
    • Provisioning module's node_status() subroutine.
    • Used to determine if the OS and provisioning engine agree on the current image loaded on a resource.
    • Can be used to determine if a resource is accessible.  A valid string will be returned if the resource is accessible.
  • Arguments & Calling Environment
    • Must only be called as an object method of an OS object ($os->get_current_image_name())
    • No arguments
  • Return Values
    • String
      • String contains a VCL image name
    • 0
      • Computer is accessible but failed to determine the current loaded image
    • Undefined
      • Computer is not accessible

...