Uploaded image for project: 'Facter'
  1. Facter
  2. FACT-628

facter returns incorrect value for `facter virtual` for Solaris Ldoms

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Done
    • Affects Version/s: FACT 1.7.5, FACT 2.3.0
    • Fix Version/s: FACT 2.4.4
    • Component/s: PE
    • Labels:
    • Template:
    • Story Points:
      2
    • Sprint:
      Client 2015-05-27
    • Release Notes:
      Bug Fix

      Description

      Whenever you execute facter with no arguments it loads both ldom.rb and virtual.rb, and virtual fact value is set properly. However, in the scenario where you execute facter virtual it loads only virtual.rb and given this fact is not explicitly set for Ldoms it defaults to setting the value as physical.

      Below is an excerpt from ldom.rb where the virtual fact is added for Solaris:

          Facter.add("virtual") do
            confine :ldom_domainrole_control => 'false'
            has_weight 10
            setcode do
              Facter.value(:ldom_domainrole_impl)
            end
          end
      

        Attachments

          Issue Links

            Activity

              jsd-sla-details-panel

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  jay Jay Wallace
                  QA Contact:
                  Eric Thompson
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Zendesk Support