{"ref":"refs/heads/feature/2.7.x/11472_add_pe_version","push_id":54759156,"commits":[{"sha":"7e4b76608f9ee52e101242e80053e80e7765434e","author":{"email":"33f5d68b41be5af447cafdf50d91452cb416a335@puppetlabs.com","name":"Matthaus Litteken"},"url":"https://api.github.com/repos/haus/puppet/commits/7e4b76608f9ee52e101242e80053e80e7765434e","message":"(#11472) Allow puppet --version to return PE version\n\nIn Puppet Enterprise, the version is contained in a file\n/opt/puppet/pe_version. If this file is present, `puppet --version` should\nreturn a version string including that information. `puppet --version` relies\non the version method in the Puppet module. This patch adds a check for the PE\nversion file, and returns a string containing both the puppet and puppet\nenterprise versions if it is present. Otherwise, it defaults to the previous\nbehavior of returning a string of the puppet version, as defined by the\nconstant PUPPETVERSION in puppet.rb.\n\nThis also includes two spec tests to verify the desired behavior, both with\nand without the PE version file being present."}],"head":"7e4b76608f9ee52e101242e80053e80e7765434e","size":1}