Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-7414

Not relevant warning during a lookup when a YAML file is empty

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Won't Fix
    • Affects Version/s: PUP 4.9.4
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Template:
    • QA Risk Assessment:
      Needs Assessment

      Description

      Hi,

      It's clearly a minor problem:

      ~# puppet --version
      4.9.4
       
      ~# puppet lookup key
      Warning: /etc/puppetlabs/code/environments/production/hieradata/datacenter/vboxhome.yaml: file does not contain a valid yaml hash
      

      But my vboxhome.yaml file seems to me perfectly valid, it is just empty:

      ~# cat /etc/puppetlabs/code/environments/production/hieradata/datacenter/vboxhome.yaml
      ---
      
      

      Ok, if the file is empty, I could just remove it. But my ENC is a script which defines the array variables datacenters via the list of yaml files in hieradata/datacenter/*. So I need the file to be present even if it is empty. Furthermore, an empty YAML file seems to me a valid YAML file so the warning seems to me not correct.

      Regards.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              flaf Francois Lafont
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Zendesk Support