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

puppet module list --render-as yaml returns excessive information

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: PUP 3.6.2
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      Debian 7 x86_64

    • Template:
    • UX Priority:
      Minor

      Description

      I'm not 100% sure whether this should be a bug or improvement request, but it appears that rendering the module list as yaml displays vastly more information than either the default or the json rendering.

      Compare:

      root@debian7:/# puppet module list
      /etc/puppet/modules
      └── puppetlabs-stdlib (v4.2.2)
      root@debian7:/# puppet module list --render-as json
      {"environment":"production","modules_by_path":{"/etc/puppet/modules":["Module stdlib(/etc/puppet/modules/stdlib)"]}}
      root@debian7:/# puppet module list --render-as yaml
      --- 
        !ruby/sym environment: production
        !ruby/sym modules_by_path: 
          /etc/puppet/modules: 
            - !ruby/object:Puppet::Module
              name: stdlib
              path: /etc/puppet/modules/stdlib
              environment: production
              metadata_file: /etc/puppet/modules/stdlib/metadata.json
              metadata: 
                name: puppetlabs-stdlib
                version: "4.2.2"
                author: puppetlabs
                summary: "Puppet Module Standard Library"
                license: "Apache 2.0"
                source: "git://github.com/puppetlabs/puppetlabs-stdlib.git"
                project_page: "https://github.com/puppetlabs/puppetlabs-stdlib"
                issues_url: "https://github.com/puppetlabs/puppetlabs-stdlib/issues"
                operatingsystem_support: 
                  - operatingsystem: RedHat
                    operatingsystemrelease: 
                      - "4"
                      - "5"
                      - "6"
                      - "7"
                  - operatingsystem: CentOS
                    operatingsystemrelease: 
                      - "4"
                      - "5"
                      - "6"
                      - "7"
                  - operatingsystem: OracleLinux
                    operatingsystemrelease: 
                      - "4"
                      - "5"
                      - "6"
                      - "7"
                  - operatingsystem: Scientific
                    operatingsystemrelease: 
                      - "4"
                      - "5"
                      - "6"
                      - "7"
                  - operatingsystem: SLES
                    operatingsystemrelease: 
                      - "11 SP1"
                  - operatingsystem: Debian
                    operatingsystemrelease: 
                      - "6"
                      - "7"
                  - operatingsystem: Ubuntu
                    operatingsystemrelease: 
                      - "10.04"
                      - "12.04"
                      - "14.04"
                  - operatingsystem: Solaris
                    operatingsystemrelease: 
                      - "10"
                      - "11"
                  - operatingsystem: Windows
                    operatingsystemrelease: 
                      - "Server 2003"
                      - "Server 2003 R2"
                      - "Server 2008"
                      - "Server 2008 R2"
                      - "Server 2012"
                      - "Server 2012 R2"
                      - "7"
                      - "8"
                  - operatingsystem: AIX
                    operatingsystemrelease: 
                      - "5.3"
                      - "6.1"
                      - "7.1"
                requirements: 
                  - name: pe
                    version_requirement: ">= 3.2.0 < 3.4.0"
                  - name: puppet
                    version_requirement: ">=2.7.20 <4.0.0"
                description: "Standard Library for Puppet Modules"
                dependencies: &id001
                  []
              forge_name: puppetlabs/stdlib
              source: "git://github.com/puppetlabs/puppetlabs-stdlib.git"
              author: puppetlabs
              version: "4.2.2"
              license: "Apache 2.0"
              puppetversion: 
              dependencies: *id001
              absolute_path_to_manifests: !ruby/object:Puppet::FileSystem::AbsolutePathPattern
                pathname: !ruby/object:Pathname
                  path: /etc/puppet/modules/stdlib/manifests
      

      It looks like the full metadata.json for each installed module is rendered into yaml but only a small subset of that information is normally displayed. I think that this should be considered a bug, because the information presented is enormously more than is needed to see which modules are installed. In any case, there should be similar information presented whether the data is rendered as json or yaml.

      This isn't currently causing me any problems, so not a high-priority issue for me. Just figured it ought to get on the list.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            danieldreier Daniel Dreier
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Zendesk Support