puppetlabs / support-script-analyzer

3 stars 3 forks source link

Fix zcat failure by #6

Closed jarretlavallee closed 3 years ago

jarretlavallee commented 3 years ago

Replacing zcat with gunzip -c fixes the error as detailed below

➜  42993 git:(master) ✗ support_parse.sh tech_check puppet_enterprise_support_42993_lxpr0728pv_20210202135239
zcat: can't stat: puppet_enterprise_support_42993_lxpr0728pv_20210202135239/logs/messages.gz (puppet_enterprise_support_42993_lxpr0728pv_20210202135239/logs/messages.gz.Z): No such file or directory
{
  "Server Version": "2019.8.1",
  "Infrastructure": [
    {
      "display_name": "File Sync Client Service",
      "server": "lxpr0721pv.unix.intra.bdf.local",
      "state": "running"
    },
    {
      "display_name": "Puppet Server",
      "server": "lxpr0721pv.unix.intra.bdf.local",
      "state": "running"
    },
    {
      "display_name": "PuppetDB",
      "server": "lxpr0721pv.unix.intra.bdf.local",
      "state": "running"
    },
    {
      "display_name": "File Sync Client Service",
      "server": "lxpr0722pv.unix.intra.bdf.local",
      "state": "running"
    },

AFTER the PR fix:

➜  42993 git:(master) ✗ support_parse.sh tech_check puppet_enterprise_support_42993_lxpr0728pv_20210202135239      
{
  "Server Version": "2019.8.1",
  "Infrastructure": [
    {
      "display_name": "File Sync Client Service",
      "server": "lxpr0721pv.unix.intra.bdf.local",
      "state": "running"
    },
    {
      "display_name": "Puppet Server",
      "server": "lxpr0721pv.unix.intra.bdf.local",
      "state": "running"
    },
    {
      "display_name": "PuppetDB",
jarretlavallee commented 3 years ago

@gavindidrichsen This is the fork we will use moving forward. I just moved your PR over here.

gavindidrichsen commented 3 years ago

@gavindidrichsen This is the fork we will use moving forward. I just moved your PR over here.

Thanks @jarretlavallee. I'll make a note of that.